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
- Read the log. Open Errors in cPanel under Metrics. It shows the latest errors with a clue, such as a line number in
.htaccessor a plugin file. A file callederror_logmay also appear in the site folder. - Test .htaccess. In File Manager (Showing hidden files and .htaccess in cPanel) rename
.htaccessto.htaccess-offand 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). - Check permissions. Folders should be
755and files644. A PHP file with777or a folder with777can cause a 500 on shared hosting. - Switch PHP version. If you changed it recently, go back (Choosing and changing the PHP version).
- Disable plugins. Rename the plugins folder, as in WordPress white screen (blank page).
- 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
- It only happens on one page: look at the code or plugin for that page.
- It started when you submitted a form: ModSecurity may be involved (When ModSecurity blocks a legitimate request).
- Open a ticket (Opening a support ticket that gets answered quickly) with the last few lines of the Errors page.