Apache has stopped writing to account access logs

Archmactrix

Well-Known Member
Jan 20, 2012
138
2
68
cPanel Access Level
Root Administrator
Apache has stopped writing to the account access logs on my server (for my personal use). It stopped the day after I enabled master global access log with custom LogFormat.

I did the configuration using this file:
/var/cpanel/templates/apache2_4/vhost.local

The web statistics sofware included in cPanel are not being updated.

These two logs are being updated:
/usr/local/apache/logs/access_log
/var/log/httpd/vhost-access_log (the master access log)

I did edit the vhost.local file in this way:

Code:
The default values here untouched

[%- END %]

LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %k %D" vcommon
CustomLog /var/log/httpd/vhost-access_log vcommon

</VirtualHost>
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,227
463
Hello :)

Check to see if new data is populated to your domain access logs (/usr/local/apache/domlogs), as that's where statistics are generated from. Do you continue to experience the issue when your custom entry is removed?

Thank you.
 

Archmactrix

Well-Known Member
Jan 20, 2012
138
2
68
cPanel Access Level
Root Administrator
Thank you Michael for your reply,

the user web logs are being written to now after I disabled the custom log.

I wasn't aware of this problem when I enabled the custom log.

My intention was just to have custom logformat and global access log for all my sites on the server, but keeping my user web logs and the statistics data.