sailbythestars

Registered
Apr 13, 2013
1
0
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!
 

spellinn

Member
Jan 3, 2002
21
1
303
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