Child pages
  • Log Rotation

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Include Page
LIB:_Version
LIB:_Version

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

Toc no bullet

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 /home/username/logs directory, where username represents the name of the cPanel account.

Warning
titleImportant:
  • If you disable the Archive logs in the user's home directory at the end of each stats run unless configured by the user option in the Stats and Logs section of WHM's Tweak Settings interface (WHM >> Home >> Server Configuration >> Tweak Settings), the system will not store logs in each user's 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 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
    titleNote:

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


Additional documentation

Localtab Group


Localtab
activetrue
titleSuggested documentation

Content by Label
showLabelsfalse
max5
showSpacefalse
cqllabel in ("apache","logs") and label = "whm" and space = currentSpace()


Localtab
titleFor cPanel users

Content by Label
showLabelsfalse
max5
showSpacefalse
cqllabel in ("apache","logs") and label = "cpanel" and space = currentSpace()


Localtab
titleFor WHM users

Content by Label
showLabelsfalse
max5
showSpacefalse
cqllabel in ("apache","logs") and label = "whm" and space in (currentSpace(),"CKB")


Localtab
titleFor developers

Content by Label
showLabelsfalse
max5
showSpacefalse
cqllabel in ("apache","logs") and space = "DD"