EA3 to EA4 fail with old model templates
Hi.
Just migrate a server from EA3 to EA4
On server I was using the template system in /var/cpanel/templates/apache2_4
Well. After conversion everything was fine.
On original file (EA3) I've for example (/var/cpanel/templates/apache2_4/*vhost.local):
Well. After conversion, lines on every VirtualHost has
And on httpd.conf
Well, on EA3 when I like re-activate CustomLog, edit all *vhost.local and uncomment lines #Customlog and after running
But on apache continues show
/usr/local/cpanel/bin/apache_conf_distiller --update Now it's not posible. Now mi code on files /var/cpanel/templates/apache2_4 is with uncomment CustomLog. Try several actions, but any write correct lines without #comment on #CustomLog.
#CustomLog [% paths.dir_domlogs %]/[% wildcard_safe(vhost.log_servername) %] combinedWell. After conversion, lines on every VirtualHost has
#CustomLog [% paths.dir_domlogs %]/[% wildcard_safe(vhost.log_servername) %] combinedAnd on httpd.conf
#CustomLog /etc/apache2/logs/domlogs/somesubdomain.domain.net combinedWell, on EA3 when I like re-activate CustomLog, edit all *vhost.local and uncomment lines #Customlog and after running
CustomLog [% paths.dir_domlogs %]/[% wildcard_safe(vhost.log_servername) %] combinedBut on apache continues show
#CustomLog /etc/apache2/logs/domlogs/somesubdomain.domain.net combined/usr/local/cpanel/bin/apache_conf_distiller --update Now it's not posible. Now mi code on files /var/cpanel/templates/apache2_4 is with uncomment CustomLog. Try several actions, but any write correct lines without #comment on #CustomLog.
-
Hello, Generally, you should use WHM " Apache Configuration " Include Editor " Pre VirtualHost (or /usr/local/apache/conf/pre_virtualhost_global.conf) to add the custom entries within IfModule statements. Could you verify if that's not working as intended? Thank you. 0 -
I don't speak about this. I speak about -> Advanced Apache Configuration - EasyApache - cPanel Documentation [LIST] - Any custom templates in the subdirectories that are within the /var/cpanel/templates/2_2/ and /var/cpanel/templates/2_4/ directories.
I read post, I write about override CustomLog... I think, IMHO, this is best way, because is not custom directive, it's "delete or comment a normal directive) Thanks. After some changes my system work properly now, with templates in /var/cpanel/templates/apache2_40 - Any custom templates in the subdirectories that are within the /var/cpanel/templates/2_2/ and /var/cpanel/templates/2_4/ directories.
-
Hello, I'm happy to see you were able to resolve the issue. Note that the updated documentation page for EasyApache 4 is located at: Advanced Apache Configuration - EasyApache 4 - cPanel Documentation Thank you. 0
Please sign in to leave a comment.
Comments
3 comments