Knowledge Base
Save up to  70% off.  Start your website today!

How to Access Cpanel Error Logs for Troubleshooting

Understanding cPanel error logs is vital for swiftly identifying and resolving website issues. By analyzing these logs, you can pinpoint errors, optimize performance, and bolster security, ensuring a seamless online experience for users.

Note: This article will cover how to access error logs and what to look for when reviewing them. If you are looking for information on how to manage the error pages, please visit our article about Error Pages. To enable Debug Mode in WordPress, check out this article on How to Enable WP_Debug.

Error Logs Overview

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 unsure what they mean or how to fix the issue, it is advisable to contact the script developer for further troubleshooting. There are 2 different sections of the Error logs page you should be aware of:

Main Error Log


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.

PHP Error Logs


The PHP Error Logs will show errors related to PHP scripts only for your account. These errors are sorted by directory and do not automatically disappear, as do the main error logs. The errors shown are stored in the error_log file within each directory. If you would like to clear the PHP error_logs, simply delete the error_log files in each directory using File Manager or FTP.

Note: At the bottom of the Error Logs page, you can limit each section's output to a specific number of lines. There is also a link to the Process Manager cPanel tool.

  1. Access File Manager
  2. Look for error_log file, right-click, then click view

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 Apache error log's actual location is /usr/local/apache/logs/error_log, where “error_log” is simply a plain text file.


Understanding these logs helps identify errors, optimize performance, and enhance security for a smoother user experience. Accessing them involves navigating through cPanel's error logs section, where you can view both main server errors and PHP-specific errors. Depending on your hosting setup, the location of these logs may vary, but they provide valuable information for troubleshooting and maintaining your website's functionality and security.

If you need further assistance, feel free to contact us via Chat or Phone:

  • Chat Support - While on our website, you should see a CHAT bubble in the bottom right-hand corner of the page. Click anywhere on the bubble to begin a chat session.
  • Phone Support -
    • US: 888-401-4678
    • International: +1 801-765-9400

You may also refer to our Knowledge Base articles to help answer common questions and guide you through various setup, configuration, and troubleshooting steps.

Did you find this article helpful?

* Your feedback is too short