Troubleshooting

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.

WordPress Advanced About 30 min 8 steps WordPress & Websites
WordPress 500 Internal Server Error: causes and fix — A tired middle-aged man in a small office leans back from his monitor with his arms crossed.

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

  1. The .htaccess file is corrupted or was changed, often by a security or caching plugin
  2. A plugin or theme threw a PHP error (newer WordPress usually shows a "critical error" instead)
  3. PHP ran out of memory
  4. The host's PHP version is incompatible with your plugins
  5. 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.

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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');

  7. 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.

  8. 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

Terms used on this page

More WordPress & Websites problems

All problems WordPress & Websites

Last updated:

Type a few letters of the topic; spelling variants are treated as the same.