500 Internal Server Error on WordPress: How to Find the Cause
A 500 error says the server failed but not why. The answer is in an error log. Here is where to look, the six usual causes, and the fix for each.

Short answer: a 500 error means the server hit a problem it could not handle, and the browser is never told what. Open the error log: the PHP error log or wp-content/debug.log names the file and line, and the web server’s error log catches configuration mistakes. In most WordPress cases the cause is a plugin or theme, a broken .htaccess rule (on Apache), memory running out, or wrong file permissions.
Where the real error is
| Log | Where to find it | Shows |
|---|---|---|
| WordPress debug log | wp-content/debug.log (after turning on WP_DEBUG_LOG) | PHP errors from plugins and themes |
| PHP-FPM log | /var/log/php*-fpm.log or the site’s pool log | Crashes, memory limits, timeouts |
| Web server log | /var/log/nginx/error.log or Apache’s error_log | Config errors, permission denied |
// wp-config.php, above "That's all, stop editing!"
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );The six usual causes
| Cause | Clue in the log | Fix |
|---|---|---|
| Plugin or theme | Fatal error in wp-content/plugins/… or themes/… | Rename that plugin’s folder over SFTP, or switch theme |
| .htaccess (Apache) | Invalid command or RewriteRule error | Rename .htaccess, then re-save Settings → Permalinks |
| Memory limit | Allowed memory size … exhausted | Raise memory_limit to 256M; find the heavy plugin |
| File permissions | Permission denied | Folders 755, files 644, owned by the site user |
| PHP version | Call to undefined function / syntax error | Switch to the PHP version the plugin supports |
| Corrupted core files | Errors in wp-includes or wp-admin | Re-upload a clean copy of WordPress core (not wp-content) |
Turn WP_DEBUG back off once fixed. Leaving debug logging on fills the disk and can expose file paths.
On GHP Cloud
Every site has its own PHP pool, so one site’s 500 error never spreads to others. Memory limit and PHP version are per-site settings in the panel, and the web terminal and WP-CLI let you disable a plugin without SFTP.
Frequently asked questions
What causes a 500 Internal Server Error in WordPress?
Most often a plugin or theme fatal error, a bad .htaccess rule on Apache, exhausted PHP memory or wrong permissions. The error log names which.
Can I fix a 500 error without wp-admin?
Yes. Rename the plugins folder over SFTP, or run wp plugin deactivate --all with WP-CLI, then re-enable plugins one by one.
Is a 500 error the host’s fault?
Sometimes, if PHP or the web server is misconfigured. Usually it is code on the site. The log tells you which.
Does a 500 error affect SEO?
Brief errors do not. If Google sees 5xx errors for days, it crawls less and may drop pages until they recover.
GHP Team
GHP Cloud
Manage WordPress sites the smart way
GHP Cloud gives you a managed server in India with a firewall, malware scanning and daily backups, billed in INR with a GST invoice — from ₹1,450/month.