Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    323
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    Pastrana :: Guadalajara :: 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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,895
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. speckados

    speckados Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    323
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    Pastrana :: Guadalajara :: 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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,895
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice