Learning how to fix WordPress 500 internal server error problems is much easier once you know the order to work in. Few errors are as alarming as your whole site — including the admin area — being replaced by a plain “500 Internal Server Error” message. The message tells you almost nothing, but the causes are a short, well-known list, and most sites are back online within the hour.
This guide walks you through the fix in the order an experienced site owner would actually do it, starting with the most likely cause and the easiest check. Work through the steps one at a time, testing your site after each one, and stop as soon as it comes back. You will also learn which mistakes to avoid, so a five-minute fix does not turn into a lost afternoon.
What a WordPress 500 Internal Server Error Actually Means
A 500 error is the server’s generic way of saying something went wrong without being able to say what. In WordPress, the trigger is almost always one of four things: a plugin or theme conflict, a corrupted .htaccess file, a PHP memory limit that is too low, or a problem introduced by an update or a site move.
Because the error is generic, the fix is a process of elimination. That sounds slow, but in practice it is fast: the first two steps on this list solve the majority of cases. Resist the urge to change five things at once. If you change everything and the site returns, you will never know what broke it — and it will probably break again the same way.
- Most often a plugin or theme conflict.
- A corrupted .htaccess file is a classic cause.
- A low PHP memory limit can trigger it on busy sites.
- It frequently appears right after an update or migration.
How to Fix WordPress 500 Internal Server Error: Step-by-Step
Follow these steps in order. After each step, load your site in a fresh browser tab. If it works, you have found the problem — finish the step properly, then move on to the prevention notes at the end.
Step 1: Deactivate your plugins
Plugins cause more 500 errors than anything else. If you can still reach your dashboard, go to Plugins, select them all, choose Deactivate from the bulk menu, and apply it. Then reactivate them one at a time, checking the site after each one. The plugin that brings the error back is your culprit — delete it and install a clean copy, or replace it with an alternative.
If the dashboard is also down, use your host’s file manager or an FTP client instead. Open the wp-content folder and rename the plugins folder to something like plugins-off. This deactivates every plugin at once. If the site returns, rename the folder back to plugins, then rename individual plugin folders inside it one by one until the error reappears. That folder names the faulty plugin.
Step 2: Switch to a default theme
If plugins are innocent, suspect the theme. In the dashboard, go to Appearance, then Themes, and activate a default theme such as Twenty Twenty-Four. If the site returns, your theme is the problem — check for a theme update, or contact the theme developer with the details.
Locked out of the dashboard? Rename your active theme’s folder inside wp-content/themes. WordPress will fall back to a default theme if one is installed, and your site should load again. If you need to change themes safely later, our guide on how to change a WordPress theme without losing content walks through the safe way to do it.
Step 3: Repair the .htaccess file
On Apache servers, a corrupted .htaccess file is one of the simplest 500 fixes there is. Using your file manager or FTP, find .htaccess in your site’s root folder — the same folder that holds wp-config.php — and rename it to .htaccess-old. Then try loading your site.
If the site returns, generate a fresh file: log in to your dashboard, go to Settings, then Permalinks, and click Save Changes without changing anything. WordPress writes a clean .htaccess for you. Note that this step applies to Apache hosting; if your host runs Nginx, there is no .htaccess file, so skip ahead to the next step.
Step 4: Raise the PHP memory limit
Some tasks, especially on busy or page-builder-heavy sites, simply run out of memory and die with a 500. The fix is to raise the PHP memory limit to 256M or higher. Many hosts let you do this from the hosting panel — look under PHP settings or MultiPHP INI Editor in cPanel. If you cannot find the setting, ask your host’s support team to raise it; it takes them a couple of minutes.
While you are there, confirm your PHP version is supported. Very old PHP versions break modern WordPress, and brand-new versions occasionally break old plugins. WordPress currently runs best on PHP 8.0 or newer, and your host’s panel shows the version your site is using.
Step 5: Read the error log
If the first four steps have not found the cause, stop guessing and read the log. Your host’s panel usually has a PHP error log, or you can turn on WordPress debug logging by adding the debug lines to wp-config.php and checking the debug.log file it creates in wp-content. The log usually names the exact plugin, theme or file that failed, with a file path and line number — turning guesswork into a direct repair.
Copy the relevant lines before you contact anyone about the problem. A support agent who can see “fatal error in plugin X, line 42” will solve your problem far faster than one who only knows “my site shows 500”.
Step 6: Restore a backup or call your host
When the standard fixes fail, restore your most recent backup. This is the moment good backup habits pay for themselves: a restore returns a working site while you investigate the cause separately, often on a staging copy. If you have never set up backups, our guide on how to back up a WordPress site for free covers the free options.
If you have no backup, or the error survives a restore, contact your host. Server-level problems — misconfigurations, exhausted resources, failing hardware — genuinely happen, and only the host can see or fix those. Give them the exact time the error started and what changed just before it: an update, a new plugin, a settings change. That one detail often points straight at the cause.
WordPress 500 Errors After an Update
A large share of 500 errors appear within minutes of an update, and the pattern is worth recognising. A plugin update can clash with your theme, a WordPress core update can expose an old plugin that was already fragile, and a PHP version change by your host can break code that worked for years. If the error started right after a change, that change is your prime suspect — undo it first, before trying anything else.
Auto-updates deserve a mention here. They are convenient, but an automatic plugin update at 3 a.m. can take a site down while nobody is watching. If your site earns money or takes bookings, consider turning off auto-updates for major plugin releases and running updates yourself during quiet hours, with a backup taken first. The ten minutes that costs is cheap insurance.
How to Stop the 500 Error Coming Back
Fixing the error is half the job; the other half is making sure you are not doing this again next month. Four habits cover most of it. First, keep plugins and themes updated, but update them one at a time and check the site after each one. Second, remove plugins you no longer use — every inactive plugin is still code that can conflict.
Third, back up before you change anything significant, and keep that backup somewhere other than the server itself. A backup turns every mistake in this guide into a five-minute inconvenience instead of a genuine emergency. Fourth, test your site the way a stranger would: on a phone, logged out, clicking the same links and forms your visitors use every day. Problems that are invisible in the dashboard often show themselves immediately in a real visit.
Two related errors are worth knowing about so you do not confuse them with a 500. A 504 gateway timeout usually means the server took too long to respond rather than failing outright, and a WordPress white screen of death is often the same family of causes showing up as a blank page instead of an error message. The plugin, theme and memory checks in this guide are the right first steps for both.
What If the 500 Error Only Appears on One Page?
Sometimes the rest of the site works fine and a single page or post throws a 500. That narrows the suspects considerably. The page itself may contain a shortcode from a deactivated plugin, a block from a page builder that is no longer installed, or an embedded form that calls a missing script. Open the page in the editor, look for anything unusual — a shortcode in square brackets that no longer resolves, or a block showing an error — and remove or replace it.
It can also be a single corrupt post in the database, though that is rarer. If the page was recently edited, check the revision history and restore the previous version to see whether the error clears. A page-specific 500 is almost never a server problem, so do not spend your time on hosting settings until you have checked the page content itself.
Frequently Asked Questions
Why did the 500 error appear suddenly?
It usually follows a change: a plugin or theme update, a PHP version change by your host, or an edit to a configuration file. If you changed nothing, a plugin auto-update or a host-side PHP upgrade is the likely trigger.
Will fixing a 500 error delete my content?
No. Your posts and pages live in the database, which these fixes do not touch. Deactivating plugins and switching themes changes appearance and features temporarily, but your content stays intact.
How do I find the exact cause of a 500 error?
Turn on WordPress debug logging or read your host’s PHP error log. The log usually names the plugin, theme or file that failed, which replaces guesswork with a specific repair.
My whole site including admin shows 500. What do I do first?
Go straight to your hosting file manager. Rename the plugins folder to deactivate everything, and rename .htaccess. Between those two steps, the majority of completely locked-out sites come back to life.
How long does it take to fix a WordPress 500 error?
Most cases take under an hour once you work through the steps in order. Plugin conflicts are often found within ten minutes; server-level problems that need your host can take longer, which is why a backup is worth having before trouble starts.

