Nov 01
p. Stats on a Cobalt RAQ often stop updating. This is most likely because the Apache log files have grown too large, probably in hundreds of MBs. Under such conditions, the logs don’t rotate cleanly through cron, and obviously webalizer stops working.
To fix this problem, you need to perform the following steps:
*Split the logs*
Run the command,
/usr/local/sbin/split_logs web < /var/log/httpd/access
*Stop Apache*
/etc/rc.d/init.d/httpd stop
*Rotate the logs manually*
cd /var/log/httpd
mv access access.1
gzip access.1
*Start Apache*
/etc/rc.d/init.d/httpd start
*Run webalizer*
cd /etc/cron.daily
./webalizer.pl
You might probably want to write this as a script and run it through cron once every two days or so.
Recent Comments