Different type of logs keep growing on server and should be set to rotate else they can cause issue, one is that when any log file reaches 2Gb size it can commonly result in apache service failure or in general they can occupy very large disk space.

To resolve this issue , Cpanel servers provide the option to set rotation for the logs from WHM gui. For Cpanel logs the rotation for logs located at /usr/local/cpanel/logs can be setup using below link in WHM :

Main >> Service Configuration >> cPanel Log Rotation Configuration

Similarly for Apache logs located at /usr/local/apache/logs the rotation can be setup from below link in WHM :

Main >> Service Configuration >> Apache Configuration >> Log Rotation

And for both of these the threshold for the log file size can be set using below link in WHM (the default size is 300Mb ):

Main >> Server Configuration >> Tweak Settings

the exact section and option under Tweak Settings is :

Stats and Logs >> Threshold in megabytes above which cpanellogd will rotate log files configured for log rotation. (Minimum 10MB)

Post Sponsor : Excellent cPanel backup script by Backup Smart !

Tags: , , ,

Leave a Reply