# WordPress 500 Internal Server Error: how to fix

URL: https://wp24x7.com/fix/wordpress-500-internal-server-error/
Updated: 2026-11-29
Type: page
Audience: WordPress site owners whose site shows a 500 error

> A 500 Internal Server Error means the server failed to complete a request and cannot say why. On WordPress it is most often a corrupted .htaccess file, a faulty plugin or theme, or a PHP limit. This guide shows how to read the error log, test each cause safely and know when to hand the site to an engineer.

## Key facts

- For: WordPress owners whose pages return a 500 Internal Server Error
- Usual causes: .htaccess rules, a plugin or theme, PHP memory limits
- Best first move: read the host's error log
- Safety: back up first; never set permissions to 777
- Emergency help: engineer reply inside 15 minutes with service credits
- Pricing: Emergency Rescue is pay-only-if-fixed
- Start: call (804) 375-4450 or post a project

A 500 Internal Server Error means the server failed to complete the request and cannot say why. **On WordPress it is most often a corrupted .htaccess file, a faulty plugin or theme, or a PHP limit. The server error log usually names the cause.**

> **Quick answer**
Read the host's error log, rename `.htaccess`, then disable plugins and switch to a default theme. Back up first, and never set permissions to 777.

## What does this error mean?

"500" is a catch-all. The web server received your request, something went wrong while processing it, and it returned a generic failure instead of a page. Unlike a 404, it does not say what was wrong, so the log is the key.

## How do I tell a 500 from other errors?

| Error | Meaning | Where to look |
|---|---|---|
| 500 | The server failed and gave no detail | Error log, `.htaccess`, plugins |
| 502 or 504 | A gateway or timeout between servers | Host, proxy, long-running scripts |
| 503 | Temporarily unavailable or overloaded | Resource limits, maintenance mode |
| 403 | Access is forbidden | Permissions, firewall, security plugin |
| "Critical error" message | WordPress caught a PHP fatal error | [Critical error guide](/fix/wordpress-critical-error) |

## Which symptom points at which cause?

| Where it happens | Likely cause |
|---|---|
| Every URL, including wp-admin | `.htaccess`, server-wide PHP problem or a plugin loading everywhere |
| One page only | Plugin, shortcode or template specific to it |
| Only when saving or uploading | A PHP limit: upload size, post size or execution time |
| Under load, then vanishes | Resource limits at the host |
| Right after a host change | PHP version or module mismatch |

_The error log names the failing rule or file_

## What safe steps should I try?

Take a backup first. Each step can be reverted.

1. **Read the error log.** In your hosting panel find "Error log" or "Logs" and note the most recent line for your site.
2. **Rename `.htaccess`.** In the WordPress root, rename it to `.htaccess-old`. If the site returns, save Settings, then Permalinks, to generate a fresh file. Applies to Apache or LiteSpeed hosts.
3. **Disable plugins.** Rename `wp-content/plugins` to `plugins-off`. If the error clears, rename it back and test single plugin folders one by one.
4. **Fall back to a default theme.** Rename the active theme folder in `wp-content/themes`.
5. **Raise PHP memory as a test.** See the next section.
6. **Check permissions.** Folders `755`, files `644`.
7. **Try a different PHP version** in the hosting panel, then switch back if nothing changes.

### How do I read the log and test memory?

### Host error log
Find "Error log" in the hosting panel. A line about an invalid command in `.htaccess` names the bad rule. A fatal PHP error names the file. Premature end of script headers or a resource limit points at the server.
### Raise memory
Add this above the "stop editing" comment in `wp-config.php`:

```php
define( 'WP_MEMORY_LIMIT', '256M' );
```

Hosts may cap this, so check their limit.
### Permissions
Folders are normally `755` and files `644`. Correct only clear outliers, and never apply `777`.

## A worked example

Imagine a site that returns a 500 on every page right after a developer added a redirect. The error log says a directive in `.htaccess` is not allowed or not recognised. Renaming the file brings the site back, which confirms the rule was the cause. The developer restores the original WordPress rules, saves permalinks to regenerate them, and re-adds the redirect using the host's own redirect tool. The log made the diagnosis, and renaming the file proved it in a minute.

## What information should I collect for a helper?

- The exact time of the error and the page address.
- Whether every page fails, or only some.
- The last few lines of the server error log.
- What changed in the last day: update, new plugin, edit, host change.
- The PHP version in use and whether the host recently changed it.

> **What not to do**
Do not set files or folders to `777`. Do not delete `wp-config.php`. Do not edit `.htaccess` without a copy, since one wrong character can take the whole site down. Stop and get help if the log shows server-level errors you do not understand, the problem began after a host change, or unfamiliar files appear in `wp-content`.

## What should I do after the fix?

Resave permalinks, clear caches and test a few different page types, a form and the admin screens. Leave debugging off on the live site. If the cause was a limit at the host, ask whether the plan fits your traffic, and consider [speed optimization](/wordpress-speed-optimization) if heavy pages triggered it.

## How do we fix it?

[WordPress emergency support](/wordpress-emergency-support) responds within 15 minutes with service credits, and rescue is pay-only-if-fixed. We read the server log, repair the rules or isolate the plugin, and explain the root cause. If the cause is a compromise, we move to [malware removal](/wordpress-malware-removal).

**Site returning a 500 right now?**
An engineer can read the log with you.
[Post a project](/post-project)
[Call the help desk: (804) 375-4450](tel:+18043754450)

## Frequently asked questions

### Is a 500 error WordPress's fault?

Not always. It is a generic server response meaning something failed. The cause can be your .htaccess file, a plugin, PHP settings or the host itself, which is why the error log matters more than guessing.

### What is the first thing to check?

Your host's error log. It usually names the exact file or directive that failed, which saves guessing. If you cannot find the log in the hosting panel, ask the host where it is.

### Can I just restore the old .htaccess?

Renaming it is the safe test. If the site comes back, WordPress can write a fresh one when you save permalinks. Keep a copy of the old file so any custom rules can be re-added properly.

### Why does the error only show on one page?

That points at a plugin, shortcode, template or heavy query on that specific page rather than a site-wide setting. Test with plugins disabled and check the log for that URL.

### Does a 500 error mean I have been hacked?

Usually not. Most are caused by a plugin, a bad rule or a limit. Treat it as suspicious only if you also see unknown files, users or redirects, and then involve a professional before changing more.

### What is the difference between a 500 and a critical error message?

A 500 is a generic server failure with no detail. The WordPress critical error message means WordPress caught a PHP fatal error and is showing its own notice. Both are fixed by finding the failing plugin, theme or rule.

### Why does the 500 only appear when I save or upload?

That suggests a PHP limit such as upload size, post size or execution time. Check the log and the host's PHP settings, and ask whether the plan allows higher limits.

### Should I raise the PHP memory limit?

Raising it is a reasonable test, for example to 256M in wp-config.php, but hosts may cap it. If more memory fixes it, find what is using the memory instead of leaving it as a permanent patch.

### What permissions should WordPress files have?

Folders are normally 755 and files 644. Correct only clear outliers, do not apply broad permission changes, and never use 777, which opens the site to anyone on the server.

### Should I leave debugging on once I find the cause?

No. Switch debugging off on the live site once you have the answer, since displayed errors can reveal file paths and settings to visitors.

### What should I send to a helper?

The exact time and page address, whether every page fails, the last few lines of the error log, what changed in the last day and the PHP version in use. That saves most of the diagnosis time.
