Finding errors: logs and debugging
Read the error log to see why a page fails.
When a page shows an error or a blank screen, the error log usually says why.
- In cPanel, open Errors (or Metrics → Errors) to see the latest web server errors.
- Check for an
error_logfile in your site's folder in File Manager; PHP writes its errors there. - Read the last lines: they name the file and line causing the problem.
Common causes of "500 Internal Server Error"
- A mistake in the
.htaccessfile. Rename it to.htaccess-oldto test. - A PHP error in a plugin or theme.
- Wrong file permissions: folders should be
755and files644. - A PHP version your site doesn't support. See Changing the PHP version.
Check what a status code means in our HTTP status codes guide.