Skip to main content

cPanel error logs: where to find the cause of a 500 error

Hosting & cPanel · 29.09.2026

Why cPanel error logs matter

A 500 Internal Server Error does not explain the cause — the browser only sees the response code. The real reason is recorded in a log on the server: a PHP syntax mistake, a missing file, an exceeded memory limit, or a broken rule in .htaccess. cPanel error logs show that record in seconds, without contacting support.

Two tools in cPanel handle this: the Errors section (the latest system errors from the web server) and the error_log file that PHP creates in every site folder.

How to open the Errors section in cPanel

Go to cPanel → Metrics → Errors. The page shows the last 300 lines of the web server log for the whole account: requests to missing files, permission errors, Apache module failures. The line format looks like this:

[Mon Sep 29 09:14:02.113123 2026] [php:error] [pid 18422]
[client 203.0.113.10:52344] PHP Fatal error: Uncaught Error:
Call to undefined function in /home/user/public_html/index.php:42

The key part is the file path and the line number at the end of the record. That is the point where the script stopped.

How to find error_log in the file manager

PHP writes a detailed log into an error_log file inside the site folder, for example public_html/error_log. Open the file manager, there is no need to enable hidden files — this file is visible by default, and sort the list by modification date.

Over SSH you view the latest lines like this:

tail -n 50 ~/public_html/error_log
tail -f ~/public_html/error_log

The second command watches the file in real time — useful when you need to catch an error at the moment a page loads.

Common causes of a 500 error

Log entryCauseWhat to check
Parse error: syntax errorA typo in the PHP codeThe line and file from the message
Allowed memory size exhaustedThe script ran out of memoryThe memory_limit setting in PHP
Premature end of script headersThe script crashed before sending headersFile permissions, .htaccess syntax
No such file or directoryA required file is missingThe include or require path

If the entry points at .htaccess, disable the rules one block at a time and check the site after every step — that is the simplest way to find the broken line.

How to check resource limits

Some 500 errors are actually not about the code at all, but about exceeding the plan's CPU limit, process count, or memory. Those cases are logged separately and covered in the article about Resource Usage in cPanel. If error_log is empty and the site still fails, look there instead.

What to do about an error in a third-party plugin

If the error appeared after updating a plugin or theme, temporarily rename its folder through File Manager by adding a suffix to the name, for example plugin-name_off. The engine will stop finding the plugin and disable it without needing admin access. After fixing the issue, restore the original folder name.

For accurate diagnosis of the interpreter version, check the active PHP version: an outdated version often produces a different set of errors than a current one.

500 error diagnosis checklist

  • Open cPanel → Metrics → Errors and find the latest entry
  • Check error_log in the site folder through File Manager or SSH
  • Match the path and line number from the message against the real code
  • Disable .htaccess rules block by block if the error points at it
  • Check the plan's resource limits if error_log is empty
← Back to Knowledge Base Ask Support