Page tree
Skip to end of metadata
Go to start of metadata

For cPanel & WHM version 66

(Home >> Service Configuration >> Apache Configuration >> Log Rotation)


This interface allows you to select Apache log files for the cpanellogd daemon to compress and store.

At the end of each month, the cpanellogd daemon compresses the selected log files into a single file for each type. The system stores the compressed files in the /usr/local/cpanel/logs/archive/ directory.


The system does not automatically delete the compressed log files. You must manually delete any unnecessary files.

Configure log files

To select the log files that the cpanellogd daemon will archive at the end of each month, perform the following steps:

  1. Select the appropriate checkboxes next to the log files that you wish to store indefinitely.
    • error_log — This log file contains errors that Apache encounters when it tries to process a request.
    • access_log — This log file contains all requests that Apache processes.
    • modsec_debug_log — This log file contains errors that ModSecurity™ encounters when it tries to block a request.

  2. Click Save.


    For more information about any additional log files that appear in the interface, read our The cPanel & WHM Log Files documentation.

Additional documentation