WordPress Error 500: Fix It Without the Dashboard

500 internal server error on WordPress? Make a backup, read the log, then test .htaccess, plugins, theme and memory one by one from File Manager.

Published 1 December 2026

A WordPress 500 internal server error means something failed on your server. You can find the cause in your hosting File Manager, without the dashboard. Make a backup and read the error log. Then test the .htaccess file, plugins, theme and memory limit, one at a time. If a test does not help, undo it before you start the next one.

Before you change anything

Backup first: back up the files and database in your hosting panel, and download copies of .htaccess and wp-config.php. Do not leave a copy of wp-config.php on the server, because it holds your database password. If you cannot make a backup, ask your host to do it first.

  • Write down the last change, such as an update, new plugin, PHP version or code edit. Suspect that first.
  • Turn on hidden files in File Manager to see .htaccess, and use a private window for every test.
  • If you see a critical error message, look for a recovery mode link in the site's admin email inbox. It pauses the faulty plugin or theme only in your browser, so you may be able to log in and skip these tests.

Two tests turn off protection for a few minutes. Test 1 stops the security, password and HTTPS rules in .htaccess. Test 2 stops every normal plugin, including security and two-step login. Read how to undo each one before you start. If your site takes card payments, or you cannot finish in one go, ask your host to do tests 1 and 2 on a staging copy.

Read the newest lines in the error log

Find the error log in your hosting panel. Reload the broken page once, then read the newest lines. This is a made-up example:

PHP Fatal error: Uncaught Error: Call to undefined function example_price()
in /home/shop/public_html/wp-content/plugins/example-shipping/main.php:88

Match the clue to a test:

  • A folder inside plugins: if it is a security plugin, ask your host. If not, rename only that folder, here to example-shipping.hold, and reload the site. If this helps, ask its maker for a fix. If not, change the name back. If you opened the Plugins screen while it was renamed, turn the plugin on again too.
  • A folder inside themes: go to test 3.
  • Allowed memory size: go to test 4.
  • .htaccess, or no useful clue: start with test 1.

Test 1: rename .htaccess

WordPress calls a damaged .htaccess file the most likely cause. Skip this test on Nginx, which does not use this file.

  1. In the main WordPress folder, rename .htaccess to .htaccess_old.
  2. Open the home page. Other pages may show a 404 error for now.
  3. If it does not open, change the name back to .htaccess straight away and go to test 2.
  4. If it opens, check that the address starts with https:// before you log in. Go to Settings > Permalinks and click Save Changes. WordPress will create a new file if it has permission.

The new file does not bring back your other rules, so some protection may still be off. Send the old file to your host the same day and ask which security, HTTPS and PHP rules you need. Save your security plugin's settings again and check that it is working.

Test 2: rename the plugins folder

Choose a quiet time, because checkout and forms stop too. How you undo this test depends on the Plugins screen:

  • If you do not open it: your plugins start again when you change the folder name back.
  • If you open it while the folder is renamed: WordPress turns the missing plugins off and saves that. After you change the name back, they stay off until you turn them on.
  1. Open wp-content, rename plugins to plugins.hold and reload the site.
  2. If you still see error 500, change the name back to plugins now, without opening the Plugins screen. Go to test 3.
  3. If the site opens, log in and visit yourdomain.com/wp-admin/plugins.php. A message names each plugin WordPress turned off. Take a screenshot, because these are the ones that were on. Do not install anything here.
  4. Change the folder name back to plugins straight away.
  5. Turn on your security plugin first and check that it works. Then turn on the others in your screenshot one at a time, and reload the site each time.

If error 500 returns, or WordPress reports a fatal error, the plugin you just turned on is involved. If you are locked out, rename only its folder, then turn on the rest. If it is still in the list, do not activate or delete it there, because deleting it can remove its data. Ask its maker for a fix, or check a replacement plugin. If it is your security plugin, ask your host to protect the site until it is fixed.

This test does not stop mu-plugins files or object-cache.php. If the log names one, ask your host.

Test 3: rename the active theme

First, check that wp-content/themes has a default theme. Its folder name starts with twenty. If not, ask your host to add one.

  1. Rename your active theme's folder, for example from mytheme to mytheme.hold. With a child theme, start with its folder.
  2. Open /wp-admin/. The home page may be blank during this test.
  3. If the dashboard opens, go to Appearance > Themes and check that WordPress has switched to a default theme. Your design will change.
  4. Change the folder name back, but leave the default theme active. Get a fixed copy from your theme's maker, then activate your theme again. If you have edited its files, ask a developer to keep those changes.

If the dashboard does not open, change the name back. With a child theme, then try its parent theme's folder. Do not delete your theme.

Test 4: raise the memory limit

Do this only if the log says Allowed memory size. The number after it is the limit that ran out, in bytes: 134217728 is 128 MB. The new value must be higher, so ask your host how much your plan allows.

If wp-config.php has a WP_MEMORY_LIMIT line, edit it, but never lower it. If not, add one above the comment that tells you to stop editing. This example raises a 128 MB limit, if the plan allows 256 MB:

define( 'WP_MEMORY_LIMIT', '256M' );

If this makes no difference, undo it. If it helps, still find out which plugin used the memory.

Still broken? Use a short debug log

WordPress does not recommend debug mode on a live site, so use a staging copy. If you do not have one, ask your host or developer to do this, and to turn it off after one test.

In wp-config.php, remove any old lines for these settings. Then add these above the stop-editing comment. The last one hides errors from visitors:

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );

Reload once and read the newest lines in wp-content/debug.log. Then delete these three lines and add define( 'WP_DEBUG', false ); in their place. Download the log and delete it from the server, because other people may be able to open it.

If there is no log, send your host your domain, the time of the error and each test result. Never set files to 777, which lets any user on the server change them.

Common questions

Will renaming the plugins folder delete my settings?

No. WordPress says this keeps your plugin settings, but you may need to turn the plugins on again. Deleting a plugin is different, because some remove their data.

Why did error 500 start after a PHP update?

A plugin or theme may not work with the new PHP version. If your host still supports the old version, go back to it for a short time. Update the plugins and theme, then test the new PHP on staging.

Is it quicker to restore a backup?

It can be, if you have a working backup from just before the problem began. On a store, save any newer orders first. Follow these steps to restore WordPress. If you see a database message instead, use the database connection checks.

Sources

Read next

Check a domain name