This document provides information on the locations of log files in cPanel & WHM. It lists various filepaths where logs are stored, such as /var/log/messages which contains general error messages, /home/username/.cpanel/logs which contains user task queue errors, and /usr/local/cpanel/logs/access_log which contains cPanel & WHM user access records in common log format. The document also notes that the log file locations can be customized with configuration files and the listed paths show default configurations.
2. Table of Contents
2
Introduction
Filepath - /var/log/messages
Filepath -
/home/username/.cpanel/logs
Filepath -
/usr/local/cpanel/logs/access_ log
Some More Filepaths
Filepaths Continued
More Information on
Filepaths
Filepaths’ Information
Filepaths’ Information
Continued
3. The aim of this PPT is to provide information about the location of the log files in cPanel & WHM.A
log file’s location can be altered with a configuration file.The log files that are being mentioned here
show unaltered configurations.
For example, the filepath, /var/log/secure.The login attempts for the SSH daemon (sshd) are contained
in this file.
3
Introduction
4. The login attempts and general error messages for the below-mentioned services are contained in this file.
FTP
named or bind
The nameserver daemons
MyDNS
PowerDNS
The Courier mail server
The SSH daemon (sshd)
NSD
The Dovecot mail server
An important point that needs to be mentioned here is that the Courier mail server has been removed in cPanel & WHM
version 54. It exists only for cPanel & WHM version 11.52 and earlier.
4
Filepath - /var/log/messages
5. The records of errors within the task queue of a user are contained in this directory.
5
Filepath - /home/username/.cpanel/logs
7. The records of errors within the task queue of a user are contained in this directory.
7
EasyApache 4 Home Interface
8. This file has the records regarding access for accounts of cPanel & WHM users.These records are
displayed by the system in a standardized text format, which is known as the Common Log Format.
To digress, cPanel is a web hosting control panel.Web hosting is the service provided by web hosting
service providers, such as HTS Hosting, for rendering websites accessible over the Internet. High
quality of service at affordable prices ensures that a web hosting company gains the reputation of being
the “Best Website Hosting Company” or the “Best Cloud Hosting Company”, or the “Best Windows
Hosting Company”.
8
Filepath - /usr/local/cpanel/logs/access_log
9. /usr/local/cpanel/build/locale_database_log – Information regarding when a user edits a locale is
contained in this file.
/usr/local/cpanel/logs/api_tokens_log – The API token logs ofWHM are contained in this file.
/usr/local/cpanel/logs/cpdavd_error_log – The error logs ofWebDisk are contained in this file.
/usr/local/cpanel/logs/cpdavd_session_log – The activity logs ofWebDisk are contained in this file.
/usr/local/cpanel/logs/cpgreylistd.log – The activity logs of the Greylisting daemon are contained in this
file.
/usr/local/cpanel/logs/cphulkd_errors.log – The error logs of the Brute Force Protection daemon are
contained in this file.
9
Some More Filepaths
10. /usr/local/cpanel/logs/cphulkd.log –The activity logs of the cphulkd daemon are contained in this file.
/usr/local/cpanel/logs/cpwrapd_log – The activity logs of the cPanel & WHM service manager daemon
are contained in this file.
/usr/local/cpanel/logs/dnsadmin_log – The dnsadmin request logs are contained in this file.
/usr/local/cpanel/logs/error_log – The general errors in cPanel & WHM are contained in this file.
/usr/local/cpanel/logs/incoming_http_requests.log – The logs of connection requests to the server of
the cPanel account are contained in this file.
/usr/local/cpanel/logs/license_log – The license update logs and license errors of the server are
contained in this file.
10
Filepaths Continued
11. /usr/local/cpanel/logs/login_log –The login attempts to the cpsrvd daemon are contained in this file.
/usr/local/cpanel/logs/queueprocd.log – The logs of the cPanel TaskQueue Processing daemon are
contained in this file.
/usr/local/cpanel/logs/safeapacherestart_log – Information regarding Apache’s each restart on the
server is contained in this file.
/usr/local/cpanel/logs/session_log – The logs of the activities of a user while he/she is logged into the
cPanel account are contained in this file.
/usr/local/cpanel/logs/setupdbmap_log – The activities of the database of a cPanel account are
contained in this file.
/usr/local/cpanel/logs/stats_log – The bandwidth statistics for the cPanel accounts of all of the servers
are contained in this file.
11
More Information on Filepaths
12. /usr/local/cpanel/logs/tailwatchd_log – The Tailwatch Driver’s logs are contained in this file.
/usr/local/cpanel/logs/panic_log – The most severe error logs of a cPanel account are contained in this
file.
/usr/local/cpanel/logs/php-fpm/error.log – The PHP-FPM implementation errors are contained in this
file. The errors for the cpsrvd and cpdavd services are included in these errors. The errors for
customer sites are not included in this file.
/var/cpanel/php-fpm/USER/logs/slow.log – Those scripts that run unusually slow for a user, are
contained in this file. It needs to be mentioned here that the term “USER” represents the account
name of the cPanel.
/var/cpanel/php-fpm/USER/logs/error.log – The error logs of a user are contained in this file. The term
“USER” represents the account name of the cPanel.
/var/cpanel.bandwidth.cache – A server’s each cPanel account’s cached bandwidth history is contained
in this file.
12
Filepaths’ Information
13. /var/cpanel/accounting.log – Records related to the actions of cPanel account are contained in it.
Examples of such actions are creation and deletion.
/var/log/chkservd.log –The service status logs are contained in this file.
/var/log/cpanel-install.log – The installation logs of cPanel & WHM are contained in this file.
13
Filepaths’ Information Continued