WordPress's own documentation names a corrupted .htaccess file as the most likely cause of a 500 Internal Server Error. Rename it to .htaccess_old using your host's file manager or FTP and reload the site. If that fixes it, WordPress can create a fresh one. If not, the next suspects are a plugin, the theme, or PHP running out of memory, in that order.
What's the problem
Your WordPress site shows "500 Internal Server Error" or "HTTP ERROR 500", on the front end, the admin area, or both.
Why it happens
- A corrupted
.htaccessfile, often after a plugin, a migration or a manual edit changed it. - A plugin error, especially after an update.
- A theme error.
- PHP memory exhausted. See WordPress memory limit.
- Wrong file permissions after uploading or moving files.
- A PHP version your plugins don't support.
How to fix it
- Rename
.htaccessin your site's root folder to.htaccess_oldand reload the site. - If that fixed it, log in to the admin area and go to Settings → Permalinks, then save, so WordPress rewrites its rules.
- If not, disable plugins: from the admin area, or by renaming
wp-content/pluginstoplugins_oldif you can't log in. - Rule out the theme by renaming your active theme's folder.
- Turn on debug logging (
WP_DEBUG_LOG) and readwp-content/debug.logfor the exact error. - Check your host's error log too. Server-level errors appear there rather than in WordPress's log.
What Preventionlabs checks
One click runs the full report on your domain. For this problem it shows your WordPress version and plugins against the latest releases; whether your site loads, how fast, and where its redirects go; up to 50 pages from your sitemap, listing any that fail or are slow, plus broken links on them; files that should never be public, such as .env and .git. With Cloudflare connected, it also shows which pages returned server errors (5xx) to visitors, and when. It can't log in to WordPress, so the exact error is in your host's error log or WordPress debug log.
Run your free reportYour first report is free, no card needed. Then A$50 a month, up to 10 domains. Read-only: it never changes anything.
Sources
- WordPress: Common WordPress errorsofficial docs
The most likely issue is a corrupted .htaccess file.
- WordPress: Common WordPress errorsofficial docs
Log in to your site root using FTP and rename your .htaccess file to .htaccess_old .
- WordPress: Common WordPress errorsofficial docs
If you can access the Administration Screens try deactivating all of your Plugins and then reactivating them one by one.
- WordPress: Common WordPress errorsofficial docs
This will flush the rewrite rules and should solve your problem.
- WordPress: Common WordPress errorsofficial docs
Rename the folder for the active Theme.
Preventionlabs is independent and not affiliated with WordPress. Product names are used only to describe the problem.
← All of WordPress