How To Setup Cpanel and Apache Log Rotation?
Silicon House offers Unlimited cPanel in Linux Reseller Hosting Packages. cPanel is a graphical interface designed to host your website. It has been popular control panel used in Linux hosting. cPanel has been provided with lot of features to design your website. Cpanel servers provide the option to set rotation for the logs from WHM.
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
Now successfully you have set log rotation !