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.

Customize apache logformat

Discussion in 'EasyApache' started by sailbythestars, Apr 13, 2013.

  1. sailbythestars

    sailbythestars Registered

    Joined:
    Apr 13, 2013
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    In reference to the old thread:
    http://forums.cpanel.net/f5/modifying-default-apache-log-format-230302.html

    The "dir.logformat" is defined in the yaml apache conf file, located in:
    /var/cpanel/conf/apache

    Looks like the "local" file will take precedence over "main".

    I think you'll then need to run these after changing the config:
    /usr/local/cpanel/bin/apache_conf_distiller --update
    /usr/local/cpanel/bin/build_apache_conf

    Note: before changes will take effect, you'll need to stop and start apache.

    You can take a look at the httpd.conf to see if your logformat changes have been put in place. Then tail -f /usr/local/apache/logs/access_log , and watch it go!
     
  2. spellinn

    spellinn Member

    Joined:
    Jan 3, 2002
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    The problem I'm having is that running /usr/local/cpanel/bin/apache_conf_distiller --update

    resets the contents of

    /var/cpanel/conf/apache/main

    back to defaults. SO I'm still looking for a way to alter the default log format, especially now mod_rpaf does't work with Apache 2.4..

    Regards

    NEil
     
Loading...

Share This Page