How to Read Your Website Error Logs in cPanel — cPanel & Hosting How-Tos cPanel & Hosting How-Tos

How to Read Your Website Error Logs in cPanel

By Genhost Team 2 min read

When a page breaks, the error log tells you exactly what went wrong — the file, the line, and the reason. Learning to read it turns frustrating guesswork into a quick fix. Here’s where to find your logs in cPanel and how to make sense of them.

Where to find your error log

The cPanel Errors tool

  1. In cPanel, open Errors (under Metrics).
  2. You’ll see the most recent error log entries for your account, newest first.

This is the quickest place to look when a page throws a 500 error or behaves oddly.

Your application’s own log (WordPress)

WordPress can write its own debug log:

  1. In wp-config.php, add above the “stop editing” line:
    define('WP_DEBUG', true);
    define('WP_DEBUG_LOG', true);
    define('WP_DEBUG_DISPLAY', false);
    
  2. Reproduce the problem.
  3. Check wp-content/debug.log via File Manager.
  4. Turn debugging back off when done.

How to read a log entry

A typical line looks like:

[date] PHP Fatal error: Uncaught Error: Call to undefined function foo() in /home/user/public_html/wp-content/plugins/example/example.php:42

Read it like this:

  • Type — Fatal error stops the page (fixes needed); Warning/Notice is non-fatal.
  • Message — what went wrong in plain-ish terms.
  • File and line — .../plugins/example/example.php:42 tells you exactly where. Here, the plugin “example” is at fault.

So this example says: a plugin crashed the page — deactivate or update it.

Common entries and what they mean

  • “Allowed memory size … exhausted” → PHP ran out of memory. Raise the limit.
  • “Maximum execution time … exceeded” → a script ran too long. Raise max_execution_time or run the task in smaller batches.
  • “Call to undefined function” / “Uncaught Error” → usually a plugin or theme conflict. The file path names the culprit.
  • “Permission denied” → a file-permission problem (folders 755, files 644).
  • “.htaccess” errors / “Invalid command” → a bad .htaccess rule — see the .htaccess file explained.

From log to fix

  1. Read the file path — it names the plugin, theme or file at fault.
  2. Deactivate or revert that item.
  3. Re-test, then check the log is clean.

For a broader approach to an outage, see why is my website down.

The tools are built in

Every Web Hosting and WordPress Hosting plan includes cPanel’s error logs and metrics, so you can diagnose issues yourself — and when a log line isn’t clear, our support team can interpret it and point you to the fix.

Frequently asked questions

Where are error logs in cPanel?

cPanel has an Errors tool under Metrics that shows your site's most recent error log entries. You can also find raw logs in your account, and your application (like WordPress with WP_DEBUG) can write its own debug.log inside wp-content.

What is the difference between an error and a warning in the log?

A fatal error stops the script and usually causes a 500 error or blank page. A warning or notice flags a problem but lets the page continue. Fix fatal errors first; warnings are worth cleaning up but rarely take a site down.

My error log is empty but my site is broken. Why?

The error may be logged elsewhere - your application's own log, or the server log rather than the account log. For WordPress, enable WP_DEBUG and WP_DEBUG_LOG to capture errors to wp-content/debug.log, then reproduce the problem and check that file.