WordPress 500 Internal Server Error: causes and fix
Quick answer: A 500 error means the server hit a problem running your site without saying why. A broken .htaccess file, a faulty plugin or low PHP memory are the usual causes; check your host's error log first.

Symptoms
- A blank or plain page reading "500 Internal Server Error" or "HTTP ERROR 500"
- Chrome shows "This page isn't working" with error 500
- Only the dashboard or a single page fails while the rest of the site loads
Likely causes
- The .htaccess file is corrupted or was changed, often by a security or caching plugin
- A plugin or theme threw a PHP error (newer WordPress usually shows a "critical error" instead)
- PHP ran out of memory
- The host's PHP version is incompatible with your plugins
- File permissions are wrong or core files are incomplete
Step-by-step fix
Start from step one and test again after each step; steps go from the simplest to the most technical.
-
Reload the page
A 500 error is sometimes temporary and caused by a brief server overload. Wait a minute, refresh, and also try another browser or a private window so cached pages don't mislead you.
-
Read your host's error log
Your hosting control panel has a section called "Errors" or "Error Log". The latest lines usually show the real cause: a plugin name, an .htaccess problem or a memory limit.
-
Set .htaccess aside
With File Manager or FTP, rename .htaccess in the site's root folder to .htaccess-old (turn on "Show Hidden Files" to see it). If the site loads, log in, go to "Settings > Permalinks" and click "Save Changes" without changing anything so WordPress writes a clean file.
-
Deactivate all plugins
If the dashboard opens, deactivate every plugin, then reactivate them one by one. If it doesn't, rename wp-content/plugins to plugins-old on the server, test the site, then rename it back and reactivate plugins one at a time.
-
Try a default theme
If plugins aren't the cause, rename the active theme's folder in wp-content/themes so WordPress switches to a default theme. If the site loads, the theme is at fault; update it or contact its developer.
-
Increase PHP memory
If the log says "memory exhausted", back up wp-config.php and add this line above "That's all, stop editing": define('WP_MEMORY_LIMIT', '256M');
-
Change the PHP version
In your control panel's PHP version tool, pick another supported version and test the site. If your host recently upgraded PHP, that alone can trigger the error.
-
Fix permissions and core files
Folders should be 755 and files 644; you can change this in File Manager. If the log points to wp-admin or wp-includes, re-upload those two folders from the official WordPress package. Back up the full site and database first.
If nothing worked
If the error log shows nothing or you can't access it, contact your host's support with the exact time of the error and the page URL; the cause may be server-side (resource limits, PHP-FPM) that only they can fix. If the error started after moving the site, wp-config.php or .htaccess may still point to the old server. Don't download core files from unofficial sources, and don't edit the database without a backup.
Frequently asked questions
What's the difference between a 500 and a 502 error?
A 500 means your site's own server failed while running code, so the cause is usually inside your site. A 502 means an intermediate server, such as a CDN or front-end web server, got a bad response from the origin, which is more often a hosting infrastructure issue.
Why does only the dashboard show a 500 error?
Usually a plugin that runs only in the admin area is failing, or the admin side needs more memory. Try the plugin steps and the WP_MEMORY_LIMIT fix.
Related problems

There Has Been a Critical Error on This Website (WordPress)
A plugin or theme that broke after an update is almost always the cause. Open the recovery mode link in the admin email first; if there is none, rename the plugins folder via your host.

502 Bad Gateway Error
A 502 means a gateway such as a CDN or Nginx got a bad response from the site's main server. Visitors should wait and refresh; site owners should check PHP and server services.

WordPress Allowed Memory Size Exhausted Error
PHP used up the memory allowed to build a page. Add define('WP_MEMORY_LIMIT', '256M'); to wp-config.php first; if that doesn't help, raise memory_limit in your hosting control panel.

WordPress White Screen of Death
A completely blank page means PHP stopped before building the page and the error is hidden. A plugin, theme or memory limit is usually to blame; turn on WP_DEBUG first to reveal the real error.
Terms used on this page
More WordPress & Websites problems
All problems WordPress & Websites
Last updated: