A 500 Internal Server Error means the server hit a problem it could not describe. In WordPress it is most often caused by a corrupted .htaccess file, a plugin or theme error, exhausted PHP memory or an incompatible PHP version. Fix it by checking the server error log, regenerating .htaccess, deactivating plugins, switching to a default theme and raising the PHP memory limit — in that order.
A WordPress 500 internal server error is the server’s way of saying “something went wrong, but I am not going to tell you what”. It is vague by design, which makes it frustrating — but in WordPress the usual suspects are well known: a faulty plugin or theme, a corrupted .htaccess file, PHP memory limits or a server configuration problem.
Work through the fixes below in order. Most 500 errors are resolved in under half an hour, and your content is almost always safe.
The 500 error is frustrating because it hides the real cause. These steps narrow it down quickly.
Important: Before changing files or the database, take a backup if you can. If you cannot log in, your host’s backups or file manager can help — see how to back up WordPress.
Common causes of the WordPress 500 error
| Cause | Clue |
|---|---|
| Corrupted .htaccess | Error started after changing permalinks or a plugin wrote rules |
| Plugin or theme PHP error | Error started after an update or new install |
| PHP memory limit reached | “Allowed memory size exhausted” in logs |
| PHP version incompatibility | Error started after the host changed PHP version |
| File permission problems | Error after moving hosts or uploading files |

How to fix the 500 internal server error
- Check the error logYour hosting panel usually has an “Error log” or “Logs” section. It often names the exact file and line.
- Regenerate .htaccessRename
.htaccessto.htaccess-old. If the site loads, go to Settings → Permalinks and click Save to create a fresh file. - Deactivate all pluginsRename the plugins folder as described below, then re-enable plugins one at a time.
- Switch to a default themeRename your active theme’s folder so WordPress falls back to a default theme.
- Increase PHP memoryRaise the limit in wp-config.php (see below) or ask your host.
- Check the PHP versionMake sure your host runs a PHP version your plugins and theme support.
- Re-upload core filesReplace wp-admin and wp-includes with fresh copies from wordpress.org (keep wp-content and wp-config.php).
- Contact your hostIf none of this works, ask support to check server logs and resource limits.
# Default WordPress .htaccess (Apache, site at the domain root)
# BEGIN WordPress
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
Deactivate plugins without the dashboard
If you cannot reach the dashboard, open your host’s file manager or connect with SFTP, go to wp-content and rename the plugins folder to plugins-off. This deactivates every plugin. If the site works, rename it back and rename individual plugin folders one by one to find the culprit.
Turn on WordPress debug logging
// wp-config.php — log errors privately to wp-content/debug.log
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
Reproduce the error, then open wp-content/debug.log. The last lines usually name the plugin or theme file causing the problem. Turn debugging off and delete the log afterwards.

// wp-config.php — raise the WordPress memory limit (your host’s PHP limit must allow it)
define( 'WP_MEMORY_LIMIT', '256M' );
For a complete method, see our WordPress troubleshooting guide.
Fix order: fastest checks first
| Check | Time | Fixes |
|---|---|---|
| Recent change? Undo it | 2 minutes | New plugin, update or code edit |
| Rename .htaccess and resave permalinks | 5 minutes | Corrupted rewrite rules |
| Disable all plugins via file manager | 5 minutes | Plugin errors and conflicts |
| Switch to a default theme | 5 minutes | Theme errors |
| Check error logs and PHP memory | 10 minutes | Fatal errors and memory limits |
| Contact your host | Varies | Server configuration or outages |
After fixing it
- Re-enable plugins one at a time to find the culprit.
- Update or replace the problem plugin or theme.
- Turn off debug display on the live site.
- Take a fresh backup.
- Set up uptime monitoring for early warnings.
Frequently asked questions
What does a 500 Internal Server Error mean in WordPress?
It means the web server encountered an unexpected problem while processing the request. In WordPress it usually comes from .htaccess, a plugin or theme error, PHP memory limits or PHP version issues.
Can a plugin cause a 500 error?
Yes. A plugin with a PHP error or an incompatibility with your PHP version is one of the most common causes. Disabling plugins is a quick way to confirm.
Will fixing a 500 error delete my content?
No. Regenerating .htaccess, disabling plugins and switching themes do not delete posts or pages.
Why does only wp-admin show a 500 error?
Admin-only 500 errors often come from a plugin that runs in the dashboard or from memory limits. Raise the memory limit and test plugins.
Does a 500 error hurt SEO?
Short outages rarely cause lasting damage, but repeated or long-lasting 500 errors can reduce crawling and rankings. Fix them quickly.
Is a 500 error my host’s fault?
Sometimes, but WordPress plugins, themes and settings are common causes. Check those first, then contact your host with error log details.
How is a 500 error different from a 503 error?
A 500 is a general server error. A 503 usually means the server is temporarily unavailable, often due to maintenance or overload.
Further reading: the official WordPress documentation.







