Sunday, 4 August 2013

Domlog files are not getting updated.

Today, I noticed that awstat not showing any usage and while checking, I could see that no logs are getting added to the domlogs file. I checked awstat settings in the server via WHM and everything was fine. I googled the issue a lot and finally end up with the following fix.
Open the apache conf.
#vi /usr/local/apache/conf/httpd.conf
Search for the line
ErrorLog /usr/local/apache/logs/error_log
Beneth that line add the following:
LogFormat “%h %l %u %t “%r” %>s %b “%{Referer}i” “%{User-Agent}i”” combined
LogFormat “%{Referer}i -> %U” referer
LogFormat “%h %l %u %t “%r” %>s %b” common
LogFormat “%{User-agent}i” agent
Save and exit, then run:
/usr/local/cpanel/bin/apache_conf_distiller –update
restart apache
Awstat started updating itself at last. :)

No comments:

Post a Comment