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!

Apache log format issue with EasyApache 4

Discussion in 'EasyApache' started by wintech2003, Sep 21, 2016.

  1. wintech2003

    wintech2003 Active Member
    PartnerNOC

    Joined:
    Sep 15, 2010
    Messages:
    28
    Likes Received:
    1
    Trophy Points:
    53
    Location:
    Greece
    cPanel Access Level:
    DataCenter Provider
    I'm experiencing the same issue after updating to v58 and/or EA4 as well (not sure what caused it). The LogFormat change from %h to %a will not stick anymore - it was working fine before that.

    Even after using /usr/local/cpanel/bin/apache_conf_distiller --update and regardless of whether I edit /var/cpanel/conf/apache/main or /usr/local/apache/conf/httpd.conf, as soon as I run /scripts/rebuildhttpdconf %a is changed back to %h and my logs start showing Varnish's IP again.
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,827
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    You should be able to complete the following steps to modify the entry:

    1. Copy the Apache 2.4 template for EasyApache 4 to allow for customization:

    Code:
    cp -a /var/cpanel/templates/apache2_4/ea4_main.default /var/cpanel/templates/apache2_4/ea4_main.local
    2. Edit /var/cpanel/templates/apache2_4/ea4_main.local to change the entry:

    Code:
    vi /var/cpanel/templates/apache2_4/ea4_main.local
    3. Save the changes, and then run:

    Code:
    /scripts/rebuildhttpdconf
    Let us know if this helps.

    Thank you.
     
    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