The WHM (Web Host Manager) error log is primarily found in the cPanel and WHM installation directories. Here are the key locations where you can find logs related to WHM:
1. cPanel Error Logs
Location:
bash
Copy code
/usr/local/cpanel/logs/error_log
- Description: This log contains errors related to cPanel and WHM operations, including issues with services, scripts, and configuration errors.
2. Apache Error Logs
Location:
bash
Copy code
/usr/local/apache/logs/error_log
- Description: If your WHM server is using Apache, this log will contain errors related to the web server itself, which can affect how cPanel/WHM functions.
3. System Logs
Location:
bash
Copy code
/var/log/messages
- Description: This log contains general system messages, including errors that may affect WHM functionality.
4. Service-Specific Logs
Depending on the services running on your server, there might be additional logs:
MySQL Errors:
bash
Copy code
/var/lib/mysql/hostname.err
FTP Errors:
c
Copy code
/var/log/messages (or /var/log/proftpd.log)
How to Access the Logs
- Using SSH:
- Connect to your server using an SSH client (like PuTTY).
Use commands like cat, less, or tail to view the logs:
bash
Copy code
cat /usr/local/cpanel/logs/error_log
or
bash
Copy code
tail -f /usr/local/cpanel/logs/error_log
- Using File Manager:
- If you have cPanel access, you can also use the File Manager to navigate to the logs directory.
Summary
The primary WHM error log is located at /usr/local/cpanel/logs/error_log. You can access it via SSH or through the File Manager in cPanel. Monitoring these logs can help troubleshoot issues related to WHM and cPanel.
