
Originally Posted by
rking
In the file :
pico /etc/logrotate.d/httpd
The first line refers to /var/log/httpd/ as the path to logs. I have found this on the web and was wondering if anyone has any response as to the validity of the post:
--------------
Since the beginning of time, cPanel has had logs that it simply does not rotate properly. Why this has been an ongoing problem that has never been fixed is beyond me, but it CAN be fixed and we'll go through what is needed to accomplish this.
The most important logs that are missed are the Apache system logs that are located in /usr/local/apache/logs. SSH into your server as root.
pico /etc/logrotate.d/httpd
(on some servers this file is called apache)
The first line should read:
/usr/local/apache/logs/*log {
Also you need to change the line that reads:
/bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true
to:
/bin/kill -HUP `cat /usr/local/apache/logs/httpd.pid 2>/dev/null` 2> /dev/null || true
(the above line should all be on ONE LINE!)
--------------
Just wanted to get some feedback before I potentially bork my logs.