Hi:
I'm setting up a CENTOS 4.3 LAMP web server as a basic intranet server (document sharing/ management, forum etc).
One of the things I'd like to be able to get it to do is manage the webserver logs like cPanel does on my Dathorn external web sites - ie:
-roll them over daily;
-save them with names in the format site-date.log or similar;
-then gz them all up automatically at the end of the month into a file names sitename-year-month.gz
This is not 100% essential, but it would certainly be real handy.
Does anyone have a ideas how I can achieve this, or the cron job syntax cPanel uses to do this?
All advice much appreciated. The answer is probably quite simple, but I can't get my head around it.
I'm setting up a CENTOS 4.3 LAMP web server as a basic intranet server (document sharing/ management, forum etc).
One of the things I'd like to be able to get it to do is manage the webserver logs like cPanel does on my Dathorn external web sites - ie:
-roll them over daily;
-save them with names in the format site-date.log or similar;
-then gz them all up automatically at the end of the month into a file names sitename-year-month.gz
This is not 100% essential, but it would certainly be real handy.
Does anyone have a ideas how I can achieve this, or the cron job syntax cPanel uses to do this?
All advice much appreciated. The answer is probably quite simple, but I can't get my head around it.
Comment