If your site is down with a 500 Internal Server Error (including right after switching WordPress desktop blogging apps or a theme), work through, in order: a corrupted .htaccess file, an exceeded PHP memory limit, a bad plugin, wrong file permissions, or corrupted core files. Most 500 errors on WordPress trace to one of those five.
Table of Contents
1. Check your .htaccess file
A corrupted .htaccess is the most common single cause. Rename it via FTP/SFTP or your host’s file manager (.htaccess to .htaccess_old), then reload the site. If that fixes it, regenerate a clean one from WordPress admin under Settings → Permalinks, or write the default block yourself:
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
Back up the site before the larger fixes
If you still have admin or file access, back the site up before the next steps.
For that backup, skip BackUpWordPress. It is effectively abandoned: its own wordpress.org listing carries the notice “This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported,” and its last update was over a year ago. Recent user reviews on that same page report backups silently failing on current PHP versions. A backup plugin that isn’t running is worse than no backup plugin, because it gives you false confidence right up until you need the file that was never written. Don’t install it.
VaultPress didn’t disappear, but it isn’t a fresh install either: its wordpress.org listing now opens with “This plugin is no longer actively supported for new customers. For the next generation of VaultPress technology, we recommend Jetpack Security.” If you already have VaultPress running as part of an existing Jetpack subscription, it’s still maintained (version 4.0.7, last updated 10 April 2026, per its wordpress.org listing on 14 October 2026). If you’re setting up backups today, use Jetpack VaultPress Backup (the current product Automattic points new customers to) or a standalone plugin instead of installing the VaultPress plugin.
UpdraftPlus is fine: its wordpress.org listing showed 4+ million active installs and a last update on 21 September 2026 when checked on 14 October 2026. That’s the one to actually install if you need a backup right now.
2. Raise the PHP memory limit
An exhausted memory limit throws a 500, not a descriptive error, unless your error log is on. Three places to set it (pick the one you have access to):
wp-config.php:define('WP_MEMORY_LIMIT', '256M');above the “stop editing” line..htaccess:php_value memory_limit 256M. The PHP manual documents this line for PHP running as an Apache module (mod_php versus PHP-FPM explains the difference). If your host runs PHP under PHP-FPM or CGI instead, the line can itself cause a 500, because Apache returns an HTTP 500 for an.htaccessdirective it does not recognize (Apache’s .htaccess tutorial shows this with a nonsense word); use one of the other two places there.php.ini:memory_limit = 256M
Reload after each change. If the wp-config define doesn’t help, a stricter php.ini limit at the server level may be overriding it, and that’s the next place to check.
3. Isolate a bad plugin
Via FTP, rename wp-content/plugins to plugins_old. If the site loads, one plugin was the cause. Rename it back, then rename each plugin’s subfolder individually, reloading after each, until the error returns.
4. Check file permissions
Standard chmod permissions: directories 755, files 644, wp-config.php tighter still at 440 or 400. Too loose is a security problem, not a 500-error one; too tight for your host’s user/group setup is what actually causes this error.
5. Reinstall WordPress core files
After backing up, download the current release from wordpress.org, delete the wp-content folder from the downloaded copy (so you don’t overwrite your themes/plugins/uploads), and upload the rest over your existing install via FTP. This replaces core files without touching your content.
See the real error, don’t guess at it
A generic 500 page is the server declining to show you the cause. Two ways to see it instead of guessing: turn on WordPress’s own debug flag in wp-config.php (define('WP_DEBUG', true); define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', false);), which writes to wp-content/debug.log without exposing the error to site visitors; or ask your host for the raw server error log, which catches fatals that happen before WordPress finishes loading.
Here is what that looks like without a WordPress install: a two-line PHP 8.5.8 script that throws, with logging on and display_errors off, the same pattern WP_DEBUG_DISPLAY = false implements:
$ php -d display_errors=Off -d log_errors=On -d error_log=/tmp/demo-error.log -r 'trigger_error("demo fatal", E_USER_ERROR);'
(nothing printed — that's display_errors=Off, what a site visitor sees: nothing, just your generic error page)
$ cat /tmp/demo-error.log
[12-Aug-2026 03:28:06 UTC] PHP Deprecated: Passing E_USER_ERROR to trigger_error() is deprecated since 8.4, throw an exception or call exit with a string message instead in Command line code on line 1
[12-Aug-2026 03:28:06 UTC] PHP Fatal error: demo fatal in Command line code on line 1
Stack trace:
#0 Command line code(1): trigger_error('demo fatal', 256)
#1 {main}
The deprecation line is PHP 8.5.8 telling on the demo script itself: E_USER_ERROR via trigger_error() has been deprecated since 8.4. A plugin still doing this on old advice would log twice: once for the deprecation, once for the fatal. Neither line reached the terminal; both went to the log. That’s what WP_DEBUG_LOG plus a false WP_DEBUG_DISPLAY gives you on a real site.
If none of the five steps above resolve it, that’s the point to contact your host with the server error log in hand; they can see things (resource limits, mod_security rules, PHP-FPM crashes) that never reach WordPress’s own logging.