Skip to content
Fix Library

WordPress 500 Internal Server Error: how to fix

WordPress showing a 500 Internal Server Error? Learn the common causes, check .htaccess, logs and PHP safely, and know when to call. (804) 375-4450

At a glance

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.

Updated November 29, 2026 · For WordPress site owners whose site shows a 500 error

  • 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.

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?

ErrorMeaningWhere to look
500The server failed and gave no detailError log, .htaccess, plugins
502 or 504A gateway or timeout between serversHost, proxy, long-running scripts
503Temporarily unavailable or overloadedResource limits, maintenance mode
403Access is forbiddenPermissions, firewall, security plugin
"Critical error" messageWordPress caught a PHP fatal errorCritical error guide

Which symptom points at which cause?

Where it happensLikely cause
Every URL, including wp-admin.htaccess, server-wide PHP problem or a plugin loading everywhere
One page onlyPlugin, shortcode or template specific to it
Only when saving or uploadingA PHP limit: upload size, post size or execution time
Under load, then vanishesResource limits at the host
Right after a host changePHP version or module mismatch
15:00
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?

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.

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 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 if heavy pages triggered it.

How do we fix it?

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.

Site returning a 500 right now?

An engineer can read the log with you.

FAQ

Questions people ask

11 answers. Can't find yours? Ask an engineer.

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.

Link to this answer
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.

Link to this answer
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.

Link to this answer
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.

Link to this answer
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.

Link to this answer
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.

Link to this answer
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.

Link to this answer
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.

Link to this answer
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.

Link to this answer
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.

Link to this answer
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.

Link to this answer

Want an engineer on it?

Tell us what is wrong in plain words. A person reads it, today.