Fixing a 500 Internal Server Error Print

  • 500 error, internal server error, htaccess, php, troubleshooting
  • 0

A 500 error means the server hit a problem and does not say what it is. The cause is almost always something you changed lately: an .htaccess edit, a plugin, or a PHP version.

Steps, quickest first

  1. Read the log. Open Errors in cPanel under Metrics. It shows the latest errors with a clue, such as a line number in .htaccess or a plugin file. A file called error_log may also appear in the site folder.
  2. Test .htaccess. In File Manager (Showing hidden files and .htaccess in cPanel) rename .htaccess to .htaccess-off and reload. If the site works, the file had an error. Put back your backup copy, or in WordPress save permalinks to create a clean one (Fixing 404 errors in WordPress).
  3. Check permissions. Folders should be 755 and files 644. A PHP file with 777 or a folder with 777 can cause a 500 on shared hosting.
  4. Switch PHP version. If you changed it recently, go back (Choosing and changing the PHP version).
  5. Disable plugins. Rename the plugins folder, as in WordPress white screen (blank page).
  6. Check resources and space. A full account or hitting a limit also gives errors (Resource limits and the 508 error).

If it doesn't work


Was this answer helpful?

« Back