The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

EA3 to EA4 fail with old model templates

Discussion in 'EasyApache' started by speckados, Jan 29, 2017.

  1. speckados

    speckados Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    303
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Acequias :: Granada :: España
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    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):

    Code:
    #CustomLog [% paths.dir_domlogs %]/[% wildcard_safe(vhost.log_servername) %] combined
    Well. After conversion, lines on every VirtualHost has
    Code:
    #CustomLog [% paths.dir_domlogs %]/[% wildcard_safe(vhost.log_servername) %] combined
    And on httpd.conf
    Code:
    #CustomLog /etc/apache2/logs/domlogs/somesubdomain.domain.net combined


    Well, on EA3 when I like re-activate CustomLog, edit all *vhost.local and uncomment lines #Customlog and after running
    Code:
    CustomLog [% paths.dir_domlogs %]/[% wildcard_safe(vhost.log_servername) %] combined
    But on apache continues show
    Code:
    #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.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,037
    Likes Received:
    1,278
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
  3. speckados

    speckados Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    303
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Acequias :: Granada :: España
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    I don't speak about this. I speak about ->
    Advanced Apache Configuration - EasyApache - cPanel Documentation
    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_4
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,037
    Likes Received:
    1,278
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page