The WHM (Web Host Manager) error log is primarily located in the following directory:
Main Error Log Location
Path:
bash
Copy code
/usr/local/cpanel/logs/error_log
- Description: This log file contains errors related to cPanel and WHM operations, including issues with services, configuration, and scripts.
Additional Relevant Logs
- Apache Error Log:
Path:
bash
Copy code
/usr/local/apache/logs/error_log
- Description: This log records errors related to the Apache web server, which can impact the functioning of cPanel/WHM.
- System Logs:
Path:
bash
Copy code
/var/log/messages
- Description: This log contains general system messages, including errors that may affect WHM functionality.
- MySQL Error Log:
Path:
bash
Copy code
/var/lib/mysql/hostname.err
- Description: This log records errors related to MySQL operations.
Accessing the Logs
To access the logs, you can use SSH:
Connect via SSH:
bash
Copy code
ssh root@your-server-IP
- View Logs:
Use commands like cat, less, or tail to read the logs:
bash
Copy code
cat /usr/local/cpanel/logs/error_log
or for real-time monitoring:
bash
Copy code
tail -f /usr/local/cpanel/logs/error_log
Summary
The primary WHM error log is located at /usr/local/cpanel/logs/error_log. You can also check other related logs in the Apache and system log directories to troubleshoot various issues.
