> Every Protuno article: https://protuno.com/blog.md · Site map for AI agents: https://protuno.com/llms.txt

# WordPress 500 Internal Server Error: How to Find the Cause and Fix It

- Date: 30 November 2026
- Page: https://protuno.com/blog/wordpress-500-internal-server-error

A 500 Internal Server Error means the server tried to build your page and something broke on the way, so it gave up with a generic error. In WordPress the cause is usually a broken .htaccess rule, a PHP error in a plugin or theme, or a PHP limit. The fastest way to find which is to read the error log first, because it usually names the cause in one line.

> **The short version**
> 
> 
> 
> **Read the log first:** your host’s error log, or WordPress’s debug.log, tells you the file and line.
> 
> **Right after editing .htaccess or installing something?** Rename .htaccess and re-save Permalinks.
> 
> **Right after an update?** Rename that plugin’s folder, or switch to a default theme.
> 
> **Only on heavy pages, or only at busy times?** It is a PHP limit or the server running out of capacity.

> **How we built this guide**
> We did not break a test site to screenshot a 500. The steps follow WordPress’s documentation on debugging and common errors, and Google’s guidance on server errors, read on 28 November 2026.

![Diagram: visitor, web server, .htaccess, PHP, WordPress. A 500 almost always starts in .htaccess, PHP or WordPress](https://protuno.com/blog/media/2026/11/wordpress-500-internal-server-error-500-layers.webp)

*The web server answers 500 when something after it breaks.*

## What A 500 Error Means In WordPress

A 500 is the web server’s way of saying “something went wrong and I cannot tell you more”. It is different from WordPress’s own error screens. When WordPress catches a fatal error itself, it shows “There has been a critical error on this website” and can email you a recovery link. A raw 500 usually means the error happened before WordPress could catch it, or outside WordPress altogether.

If you see the critical error message instead, start with [our critical error guide](https://protuno.com/blog/wordpress-critical-error-wp-doctor-playbook). For a blank white page, see [the white screen guide](https://protuno.com/blog/wordpress-white-screen-of-death).

## Where Does The 500 Show Up?

![Table: every page after editing .htaccess means a broken rule; after an update means a PHP fatal error; only heavy pages means a memory or time limit; on and off at busy times means the server runs out of workers; after a PHP change means incompatible code](https://protuno.com/blog/media/2026/11/wordpress-500-internal-server-error-500-diagnosis.webp)

*Start with the row that matches when and where you see it.*

## How To Fix A WordPress 500 Internal Server Error

### 1. Read the error log

Most hosts show an error log in the hosting panel. Open it and look at the newest lines around the time of the error. A line like “PHP Fatal error: … in /wp-content/plugins/some-plugin/file.php on line 42” names the culprit straight away.

If your host has no log, turn on WordPress’s debug log. Add these lines to wp-config.php, above the line that says “That’s all, stop editing”:

```
// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );

// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );

// Disable display of errors and warnings
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
```

Load the page again, then read `wp-content/debug.log`. **Turn the log off when you are done.** That file can be read by anyone who knows the address, and it can leak paths and details about your site. [Our guide to an exposed debug log](https://protuno.com/blog/wordpress-debug-log-exposed) explains the risk, and [our debug mode guide](https://protuno.com/blog/wordpress-debug-mode) covers the settings.

### 2. Reset .htaccess

On Apache, rename `.htaccess` in the site’s root folder to `.htaccess_old` and reload the site. If it works, log in, go to *Settings, Permalinks* and press **Save Changes** to write a clean file. Then add back any custom rules one at a time. On nginx there is no .htaccess, so your host checks the server configuration instead.

### 3. Switch off the plugin or theme that broke

If the log names a plugin, or the error started right after an update, rename that plugin’s folder in `wp-content/plugins/` over SFTP or in the file manager. WordPress switches it off. If you do not know which plugin, rename the whole `plugins` folder to switch them all off, then rename it back and reactivate them one at a time. For the theme, rename its folder in `wp-content/themes/` and WordPress falls back to a default theme. [Our site-down guide](https://protuno.com/blog/wordpress-site-down-after-plugin-update) covers this step by step.

### 4. Raise the PHP memory or time limit

If the log says “Allowed memory size … exhausted” or “Maximum execution time exceeded”, the page needs more than PHP allows. Raise the limit, as in [our memory limit guide](https://protuno.com/blog/increase-wordpress-memory-limit), or ask your host. Then find out why that page needs so much: a large import, a heavy report or a plugin doing too much.

### 5. Check the PHP version

If the 500 started after your host changed the PHP version, older plugin code may not work on the new one. Switch back in the hosting panel to bring the site back, then update or replace the plugin before switching again. [Our PHP version guide](https://protuno.com/blog/wordpress-php-version) covers how to switch safely.

### 6. Look at traffic if it comes and goes

A 500 that appears at busy times and disappears on its own often means the server ran out of PHP workers. Look at your host’s resource graphs and the access log. A flood of requests from one bot or IP range is a common cause, and the fix is a firewall or rate limit, not a change to WordPress.

## When It Is Not A 500 Problem

- **403 Forbidden** means the server refused the request. See [our 403 guide](https://protuno.com/blog/wordpress-403-forbidden).
- **“Error establishing a database connection”** means WordPress cannot reach its database. See [our database error guide](https://protuno.com/blog/error-establishing-database-connection).
- **502 or 504** come from a proxy or CDN in front of the server waiting too long. Ask your host or check the CDN.

## Does A 500 Error Hurt SEO?

A short one, no. Google’s documentation says 5xx errors make its crawlers slow down, and already indexed pages are kept, but eventually dropped if the errors continue. Once the server answers normally again, Google gradually crawls at the usual rate. So fix a lasting 500 quickly, and check Search Console afterwards. [Our guide to a site missing from Google](https://protuno.com/blog/wordpress-site-not-showing-on-google) covers the checks.

## Where A Super Agent Fits, And Where It Does Not

Protuno is Super Agents for WordPress: six AI agents you use from Claude, Claude Code, Codex or Cursor, each working from written playbooks and a Brain for each site. To be plain: **if every page returns 500, no WordPress plugin can run, Protuno’s included,** until the site loads again. The steps above happen in your files and hosting panel.

Once the site loads, or when only part of it fails, Wren’s [WP Doctor](https://protuno.com/playbooks/wp-doctor) reproduces the problem, gathers evidence and matches it to a known cause. It applies the one matching fix only if it is a safe WordPress-level one, after saving a copy of what it will touch, and hands server, CDN and uncertain causes back to you with nothing changed. What a job may change depends on the agent’s mode on that site. Read only: no changes run. Approval mode: a run starts only when you press Approve in Protuno. Auto mode: runs start on their own, with no approval. More about [Wren](https://protuno.com/docs/super-agent-wren) and all six [Super Agents for WordPress](https://protuno.com/agents).

New to AI agents? Here is [what AI agents for WordPress can do](https://protuno.com/blog/ai-agents-for-wordpress), with real results from a test site.

## Common Questions

### What causes a 500 error in WordPress?

Most often a broken .htaccess rule, a PHP fatal error in a plugin or theme, a PHP memory or time limit, or the server running out of capacity under traffic. The error log usually says which.

### How do I find the error log?

Look for “Error log” or “Logs” in your hosting panel. If there is none, turn on WP_DEBUG_LOG in wp-config.php and read wp-content/debug.log, then turn it off again when you are done.

### Can a plugin cause a 500 error?

Yes, a PHP fatal error in a plugin is one of the most common causes, especially right after an update. Renaming the plugin’s folder switches it off and usually brings the site back.

### Is a 500 error my host’s fault?

Sometimes. Server limits, PHP version changes and overloaded servers are on the host’s side. Broken .htaccess rules and plugin errors are on yours. The error log tells you which.

### Does a 500 error hurt SEO?

Briefly, no. Lasting 5xx errors make Google crawl less and eventually drop pages from its index, so fix them quickly and check Search Console afterwards.

## Related Reading

- [The WordPress white screen of death](https://protuno.com/blog/wordpress-white-screen-of-death)
- [A WordPress critical error, diagnosed](https://protuno.com/blog/wordpress-critical-error-wp-doctor-playbook)
- [WordPress 403 Forbidden error](https://protuno.com/blog/wordpress-403-forbidden)
- [Increase the WordPress memory limit](https://protuno.com/blog/increase-wordpress-memory-limit)

## Sources

- [WordPress Advanced Administration, Debugging in WordPress](https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/)
- [WordPress Advanced Administration, Common WordPress errors](https://developer.wordpress.org/advanced-administration/wordpress/common-errors/)
- [Google Search Central, HTTP status codes and network errors](https://developers.google.com/search/docs/crawling-indexing/http-network-errors)
