Why does this happen?
A 500 Internal Server Error means the web server could not finish handling the request. The page never says what failed. On WordPress the cause is usually one bad line of server configuration, a PHP setting, a permission problem or a PHP crash that happened before WordPress could show its own message.
The causes we find most often:
- A broken
.htaccessfile. On Apache and LiteSpeed servers, this small file in your site’s main folder holds rewrite and security rules. WordPress writes its permalink rules there, and caching, security and redirect plugins add their own. One line the server cannot read takes down every page, wp-admin included, before WordPress even starts. A rewrite rule that keeps sending the request back through the same rules, often after a move to a subfolder, produces the “exceeded the limit of 10 internal redirects” message in the log. - PHP settings in the wrong place. Lines starting with
php_valueorphp_flagin.htaccessonly work on some setups, such as PHP running as an Apache module or on LiteSpeed. Many hosts now run PHP through PHP-FPM, where those lines cause an instant 500 with “Invalid command ‘php_value'” in the log. This often appears after a host moves the site to a new server or changes how PHP runs. - File permissions or ownership after a move or restore. If files are locked too tightly, the server cannot read them. If they are wide open, some hosts refuse to run them. Restores and migrations are the usual trigger.
- A PHP fatal error WordPress could not catch. A mistake in
wp-config.php, or a crash very early in loading, leaves the server with nothing to send. With error display switched off, as it should be on a live site, the browser just shows “HTTP ERROR 500”. - A fault on the server itself. PHP crashing, a host configuration change or a server security rule blocking a request can all return a 500. These sit outside your site’s files, so the host’s logs matter most.
Try this first
Steps 1, 2 and 4 change nothing on your site. Step 3 is reversible as long as you keep the downloaded copy. Stop as soon as one gives you an answer.
- Work out how far it reaches. Open the homepage, a product or post, and
/wp-admin/in a private browser window. Every page failing points at server configuration or.htaccess. Only one page or action failing, such as checkout or saving a post, points at the code that runs there. Note the time you saw it and the exact wording. - Read the error log. Your hosting control panel has one; in cPanel it is under Metrics, Errors. Look at the newest lines from the time the page failed. “Invalid command”, “internal redirects” or “.htaccess” means server configuration. “Permission denied” means file permissions. “PHP Fatal error” naming a plugin or theme means it is a code fault, so follow our critical error fix instead.
- Test
.htaccess, carefully. In your host’s file manager, download a copy of.htaccessfirst. Then rename it to.htaccess-oldand reload the site. If nothing changes, rename it back. If the homepage comes back, that file was the cause: log in to wp-admin, go to Settings, Permalinks and click Save Changes so your other pages load again. The fresh file holds only the WordPress rules, so anything else the old one held is gone for now, which can include your host’s PHP version setting, an HTTPS redirect and caching or security plugin rules. Keep the old copy and hand it over so the safe lines go back. Sites on Nginx have no.htaccess, so skip this step. - Ask your host what changed. Give them the time and the address that failed, and ask whether they changed the PHP version, how PHP runs, or a security rule. They can see server logs you cannot.
Hand it over if the log mentions permissions or ownership, because changing permissions in bulk can open security holes or break the site further. Hand it over too if .htaccess contains rules nobody on your team recognises, which can be a sign of a hacked site, or if checkout is failing on a live store. Our WordPress update recovery guide covers the case where the 500 started straight after an update.
Why did it start after moving host or restoring a backup?
A move changes more than the address of your files. The new server may run a different PHP version, run PHP in a different way, give files a different owner, or lack a module the old server had. A .htaccess file that worked for years can fail on the first request. Restores bring back old permissions and old rules along with your content. We compare what the site expects with what the new server provides and fix the mismatch, rather than copying settings across and hoping.
How is this different from a critical error or a blank page?
The three can share a root cause, but they start in different places. The critical error notice means WordPress caught a PHP crash and is telling you about it. A plain 500 page usually means the failure happened outside WordPress or before it loaded, so there is no recovery email and no recovery mode link. A completely empty page with no message is covered by our white screen fix.
If none of these match, see the full list on the Fix WordPress page.
