What is a 500 internal server error and how do I fix it?
By Ash, Founder, HosteazePublished 2 min read
The short answer
A 500 internal server error is the server's way of saying something went wrong but it can't say what. On small business sites the usual causes are a faulty plugin or theme, a broken .htaccess file, PHP running out of memory or an incompatible PHP version. The error log almost always names the real problem.

A 500 error is the least helpful message on the web. MDN describes it as a generic catch-all: the server hit an unexpected problem and couldn't find a more specific error to report. The page is broken, but the reason is hidden. Your job is to find where the server wrote down what actually happened.
What usually causes a 500 error?
| Cause | Typical trigger | Clue in the error log |
|---|---|---|
| Faulty plugin or theme | You just installed or updated one | "PHP Fatal error" naming a file in wp-content/plugins or themes |
Broken .htaccess file | A plugin or manual edit added a bad line | "Invalid command" or "RewriteRule" errors |
| PHP out of memory | A heavy page, import or plugin | "Allowed memory size of ... bytes exhausted" |
| Incompatible PHP version | The host or you changed PHP version | Errors about undefined functions or syntax |
| Wrong file permissions | Files uploaded or restored with odd settings | "Permission denied" |
If you changed something just before the error appeared, start there. It's by far the most likely cause.
How do I find the real error?
- Open your hosting control panel and look for an error log, often under logs, metrics or the site's settings.
- Find the newest entries timed when you loaded the broken page.
- Read the file path in the message. A path containing
plugins/some-plugin-namepoints straight at the culprit.
If you run WordPress and can't find a log, turn on WordPress's own. Add these lines to wp-config.php above the line that says to stop editing:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );Reload the page, then open wp-content/debug.log. Turn debugging off again when you're done.
How do I fix the common causes?
- Plugin or theme: use your file manager or FTP to rename the plugin's folder in
wp-content/plugins, for example add-offto the end. WordPress deactivates it. If the site returns, update, replace or remove that plugin. .htaccess: rename the file to.htaccess-old. If the site comes back, go to Settings > Permalinks in WordPress and click Save Changes to create a clean one.- Memory: raise WordPress's limit with a line such as
define( 'WP_MEMORY_LIMIT', '256M' );inwp-config.php, as the WordPress documentation describes. Your host's own PHP limit still applies. If a plugin needs huge amounts of memory, that plugin is the real problem. - PHP version: switch back to the previous version in your control panel, then update whatever didn't support the new one.
Back up first if you can, even with the site down. Your files and database are usually still downloadable. Our guide to how to back up a WordPress site shows how.
What if none of that works?
Contact your host with the exact time of the error and anything you found in the log. If the site shows a white page rather than an error, see the WordPress white screen of death fix. And if the message says 503 instead, read what a 503 error means, because the fix is different.
Frequently asked questions
Is a 500 error my fault or my host's?
Most of the time it's something on the website, such as a plugin update or a settings change. If you haven't changed anything and the error log is empty or mentions the server itself, contact your host.
Does a 500 error hurt SEO?
A brief one won't. Google slows its crawling when it sees server errors and keeps indexed pages for a while, but pages that keep returning errors are eventually dropped. Fix it within hours, not weeks.
What's the difference between a 500 and a 503 error?
A 500 means something broke unexpectedly. A 503 means the server is temporarily unable to handle the request, often because it's overloaded or in maintenance mode, and the problem is expected to pass.




