How to view the website error log in cPanel

  1. Open "Errors" (group "Metrics").
  2. Check the latest web server error log entries for the primary domain.
Web server error log
Web server error log

PHP errors

PHP errors are written to logs/php.error.log in the account home folder. On older accounts they go to error_log files in site folders (public_html/error_log, public_html/wp-admin/error_log). Open the file in the File Manager (how). The latest lines are at the bottom.

To see an error right on the page, temporarily turn on display_errors in the PHP settings. Turn it off again once you have found the error.

Common errors

ErrorWhere to look
500 Internal Server Errora mistake in .htaccess or a fatal PHP error - check the error log
403 Forbiddenno index file, wrong permissions (chmod) or a deny rule in .htaccess
404 Not Foundno file at this address; for a CMS - pretty URLs in .htaccess do not work
503 / 508the site is overloaded: many simultaneous requests, heavy plugins, a wave of bots

Visitor statistics and access logs are in "Visitors" and "Awstats", group "Metrics".

Questions and answers
In logs/php.error.log in the home folder or in error_log files in site folders.
Open the PHP error log - the cause is there. Most often it is an incompatible plugin or theme.