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.

Apache log format issue with EasyApache 4

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

  1. wintech2003

    wintech2003 Member
    PartnerNOC

    Joined:
    Sep 15, 2010
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page