Child pages
  • Log Rotation
For cPanel & WHM version 70

Skip to end of metadata
Go to start of metadata

(WHM >> Home  >> Service Configuration >> Apache Configuration)

Overview

This interface allows you to select Apache log files for the cpanellogd daemon to compress and archive. 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.

Warning:

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 archive.
    • 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.

    Note:

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

Additional documentation