UnderHost
Knowledgebase Docs

Error logs in cPanel: find PHP and website errors

Use cPanel Metrics and file-based logs to find PHP fatal errors, missing files, permission problems, and broken scripts causing 500 errors or blank pages.

On this page

Error logs are the fastest way to diagnose 500 errors, blank pages, broken PHP scripts, missing files, and permission problems. Check them before guessing which plugin, theme, or file caused the issue.

Where to find logs

Log or toolLocationUse it for
Recent errorsMetrics then ErrorsRecent Apache and PHP errors for the account.
Raw access logsMetrics then Raw AccessExact requests, IPs, status codes, and user agents.
Application logsApplication folder, such as WordPress debug logsCMS-specific or framework-specific errors.
Domain error filesFile Manager, often under account or domain log pathsLonger or domain-specific error history when available.

Use the Metrics Errors tool

  1. Log in to cPanel.
  2. Open Metrics and choose Errors.
  3. Review the most recent error lines.
  4. Match the timestamp to when the issue happened.

Common entries include PHP Fatal error, PHP Parse error, Permission denied, File does not exist, and memory limit errors.

File-based error logs

Some applications write their own logs. For example, WordPress can write to wp-content/debug.log when debugging is enabled. Some cPanel environments also expose domain-specific error logs in account log folders or near the affected document root.

Use File Manager or FTP/SFTP to inspect these files if the Metrics Errors screen does not show enough detail.

Read an error line

[05-Jun-2026 14:22:05 UTC] PHP Fatal error: Uncaught Error: Call to undefined function example_func() in /home/user/public_html/wp-content/plugins/example/plugin.php:142

This tells you the time, error type, missing function, file path, and line number. In this example, the likely issue is inside a WordPress plugin file at line 142.

If logs are empty

  • Reproduce the error, then refresh the log page.
  • Check the correct domain and document root.
  • Enable PHP logging with MultiPHP INI Editor: set log_errors = On and keep display_errors = Off on production sites.
  • Check application-level logs if the CMS or framework catches errors before the server logs them.
  • Open a support ticket with the URL, timestamp, and any error line you found.

Related: Changing PHP version in cPanel (MultiPHP Manager) | cPanel File Manager: upload, edit, organize, and delete files | Raw access logs in cPanel: download and analyze website traffic | Enabling WordPress debug mode to diagnose errors | Fixing a 500 Internal Server Error

Was this article helpful?

Need cPanel hosting or licensing?

Use UnderHost cPanel hosting or add cPanel/WHM to a VPS or dedicated server for familiar website, email, DNS, and database management.

Related articles

Back to cPanel