The cPanel Error Logs tool is useful when debugging scripts and finding missing files or broken links you may not be aware of. If the error messages you find are related to your website and you are not sure what they mean or how to fix the issue.
Note: This article will cover how to access error logs and what to look for when reviewing them. If you are looking for an information on how to manage the error pages, please click here. To enable Debug Mode in WordPress, check this article.
This section shows the last few lines of the server's main error log. These lines are displayed in chronological order with the time, IP address of the visitor, and the error message. Because this is a shared server, you will see errors for all accounts on the server. If you are trying to locate error messages originating from your hosting account, you may need to refresh your URL which has the error/problem and then refresh the Error Logs page.
Note: At the bottom of the Error Logs page you can limit the output of each section to a specific number of lines. There is also a link to the Process Manager cPanel tool.
Shared and Reseller
You can log in to cPanel and click the Error Log icon. This contains the last 300 Apache errors triggered by your website.
VPS and Dedicated Server
On a Dedicated Server or VPS without a cPanel installation, most log files would be located in the /var/log/ directory. The Apache log would then be located in the /var/log/httpd/ directory.
However, for all of our servers with cPanel installs, the actual location of the Apache error log is /usr/local/apache/logs/error_log, where “error_log” is simply a plain text file.