1. Home
  2. Knowledge Base
  3. cPanel
  4. Files
  5. Locations and Descriptions of cPanel and WHM Log Files

Locations and Descriptions of cPanel and WHM Log Files

Overview

In this comprehensive guide, we’ll walk you through the process of finding and managing cPanel and WHM Log Files. These files are used for monitoring your hosting environment, diagnosing issues, and ensuring the smooth operation of your website hosted with Smarthost.

SmartHost logs most activity that happens on a server to log files so we can go back and review log entries. This guide will cover the locations of the SmartHost.ie log files for things such as access logs, Apache web server logs, email logs, error logs, FTP logs, MySQL logs, and WHM logs.

Most Log files are only accessible to SmartHost Cloud Server Users. Shared hosting customers only have access to the Apache error log within their assigned shared hosting space.

Here are some specific examples of how the logs can be used:

  • Tracking user activity: The access log can be used to track which users are accessing the system and what actions they are taking. This information can be used to identify users who are creating an unusual number of accounts, making frequent changes to their settings, or accessing sensitive areas of cPanel.
  • Troubleshooting issues: If you are experiencing problems with cPanel, such as slow performance or errors, the access log can help you identify the root cause of the problem. By analysing the log entries around the time of the issue, you can pinpoint the specific requests that were causing problems.
  • Identifying security threats: The access log can be used to identify potential security threats, such as unauthorised login attempts, brute-force attacks, or attempts to exploit vulnerabilities in cPanel. By monitoring the log for unusual patterns or suspicious activity, you can take steps to protect your server from unauthorised access and other security breaches.

Email Logs

Email logs are used for tracking and troubleshooting email-related issues on your cPanel server. They provide valuable information about email deliveries, bounces, spam attempts, and other important events.

Log FileDescriptionLocation
Delivery and receipt logRecords all emails delivered and received by Exim, including the sender, recipient, and message contents./var/log/exim_mainlog
Incoming mail queueStores incoming emails that are waiting to be processed by Exim./var/spool/exim/input/
Log of messages rejected based on ACLS or other policiesTracks emails that are rejected by Exim due to access control lists (ACLs) or other policies./var/log/exim_rejectlog
Unexpected/Fatal error logLogs unexpected or fatal errors encountered by Exim during email processing./var/log/exim_paniclog
IMAP, POP login attempts, transactions, fatal errors and spam scoringTracks IMAP and POP login attempts, transactions, fatal errors, and spam scoring information./var/log/maillog and /var/log/messages
MailmanRecords Mailman-related events, such as mailing list activity and administrative actions./usr/local/cpanel/3rdparty/mailman/logs
An Overview of the various email log files generated by cPanel and WHM

cPanel and WHM Log Files

This table provides a comprehensive overview of the various log files generated by cPanel and WHM, along with their descriptions, locations, and availability to different user groups. These logs are essential for troubleshooting server-related issues, tracking server activity, and maintaining server security.

Log FileDescriptionLocation
Access logs and user actionsRecords all HTTP requests to cPanel, including the IP address, time of the request, and the requested URL./usr/local/cpanel/logs/access_log
Account transfers and misc. logsTracks account transfers, software installations, and other miscellaneous events./var/cpanel/logs
Auditing log (account creations, deletions, etc)Logs all cPanel administrative actions, such as user creations, deletions, and modifications./var/cpanel/accounting.log
Backup logsStores information about backups created and restored using cPanel’s backup tool./usr/local/cpanel/logs/cpbackup
Brute force protection (cphulkd) logLogs attempts to brute-force cPanel logins./usr/local/cpanel/logs/cphulkd.log
Cpanel dnsadmin dns clustering daemonTracks DNS clustering activities./usr/local/cpanel/logs/dnsadmin_log
Cpanel taskqueue processing daemonLogs tasks processed by the cPanel taskqueue system./usr/local/cpanel/logs/queueprocd.log
DBmappingRecords database mappings for easyApache builds./usr/local/cpanel/logs/setupdbmap_log
EasyApache build logsLogs EasyApache build processes./usr/local/cpanel/logs/easy/apache/
Error logLogs all cPanel errors, including errors related to access, configuration, and software./usr/local/cpanel/logs/error_log
Installation logTracks cPanel installation and update events./var/log/cpanel
License updates and errorsRecords license updates and errors./usr/local/cpanel/logs/license_log
Locale database modificationsLogs changes made to the cPanel locale database./usr/local/cpanel/logs/build_locale_database_log
Login errors (CPSRVD)Records login errors related to cPanel’s CPSRVD daemon./usr/local/cpanel/logs/login_log
HordeTracks Horde webmail activity./var/cpanel/horde/log/
RoundCubeTracks Roundcube webmail activity./var/cpanel/roundcube/log/
SquirrelMailTracks SquirrelMail webmail activity./var/cpanel/squirrelmail/
Panic logLogs panic events in cPanel, such as unexpected crashes or errors./usr/local/cpanel/logs/panic_log
Per account bandwidth history (Cached)Stores cached bandwidth usage data for each account./var/cpanel/bandwidth.cache/{USERNAME}
Per account bandwidth history (Human Readable)Stores human-readable bandwidth usage data for each account./var/cpanel/bandwidth/{USERNAME}
Service status logsTracks the status of cPanel services, such as Apache, MySQL, and PHP./var/log/chkservd.log
Tailwatch driver tailwatchd logLogs events related to the Tailwatch driver./usr/local/cpanel/logs/tailwatch_log
Update analysis reportingLogs update analysis reports generated by cPanel./usr/local/cpanel/logs/updated_analysis/{TIMESTAMP}.log
Update (UPCP) logLogs cPanel update events, including updates and failures./var/cpanel/updatelogs/updated.{TIMESTAMP}.log
WebDisk (CPDAVD)Logs events related to WebDisk, including file uploads and downloads./usr/local/cpanel/logs/cpdavd_error_log
Website statistics logTracks website statistics, such as page views, visitors, and errors./usr/local/cpanel/logs/stats_log
List of log files used by cPanel

cPanel Access Log

The cPanel access log is a file that records all HTTP requests made to cPanel, providing valuable insights into user activity, troubleshooting issues, and identifying security threats.

Log FileDescriptionLocationAvailability
Access logRecords all HTTP requests to cPanel, including the IP address, time of the request, and the requested URL./usr/local/cpanel/logs/access_logAvailable for all users, including shared hosting customers.
cPanel Access Log

cPanel Apache Log

The cPanel Apache logs provide a comprehensive overview of Apache-related activities, including restarts, domain access, log splitting, suPHP audit events, and web server and CGI application errors. These logs are essential for monitoring server performance, troubleshooting issues, and ensuring website security.

Log FileDescriptionLocation
Apache restarts done through cPanel and WHMRecords Apache restarts initiated through cPanel or WHM./usr/local/cpanel/logs/safeapcherestart_log
Domain access logsTracks access to Apache web servers for specific domains./usr/local/apache/domlogs/{DOMAIN}
Processing of log splittingLogs events related to the processing of log splitting tasks./usr/local/cpanel/logs/splitlogs_log
suPHP audit logRecords events related to suPHP, a PHP execution environment that provides enhanced security./usr/local/apache/logs/suphp_log
Web server and CGI application error logLogs errors generated by the web server and CGI applications./usr/local/apache/logs/error_log
cPanel Apache Log

Summary

cPanel and cPanel WHM generate a wealth of log files, each serving a specific purpose in monitoring server activity, troubleshooting issues, and enhancing security. These logs provide invaluable insights into user behaviour, identify potential performance bottlenecks, and detect suspicious activity that could indicate unauthorised access or other security vulnerabilities. By understanding the location, purpose, and format of these logs, you can effectively utilise them to maintain a healthy and secure web hosting environment.

FAQ about cPanel and WHM Log Files

What are cPanel logs and why are they important?

cPanel logs are text files generated by cPanel and cPanel WHM that record various server activities, user interactions, and performance metrics. These logs are essential for monitoring server health, troubleshooting issues, and enhancing security.

What are the different types of cPanel logs?

There are numerous types of cPanel logs, each serving a specific purpose. Some of the most common log files include:
Access log: Records all HTTP requests made to cPanel, including the IP address, time of the request, and the requested URL.
Apache logs: Track Apache-related activities, such as restarts, domain access, log splitting, suPHP audit events, and web server errors.
Error logs: Log errors generated by cPanel, Apache, MySQL, and other components.
Mail logs: Track email activity, including IMAP, POP login attempts, transactions, and fatal errors.

How can I access cPanel logs?

The location of cPanel logs varies depending on the type of log and the hosting environment. Some logs are directly accessible through cPanel or WHM interface, while others may require direct access to the server’s file system.

How can I interpret cPanel logs?

Understanding the format and structure of cPanel logs is crucial for extracting meaningful information. Each log type has its own specific format and syntax, and consulting documentation or online resources can provide valuable guidance.

What are the benefits of using cPanel logs effectively?

Effectively utilising cPanel logs can offer several benefits, including:
Tracking user activity: Identify unusual or suspicious user behaviour.
Troubleshooting cPanel issues: Pinpoint the root cause of performance problems or errors.
Identifying security threats: Detect unauthorised access attempts, brute-force attacks, or vulnerabilities.
Enhancing server performance: Monitor resource usage, identify bottlenecks, and optimise server configurations.
By regularly reviewing and analysing cPanel logs, you can proactively address potential issues, maintain a secure environment, and ensure optimal server performance for your website.

Was this article helpful?

Related Articles

Go to Top