Skip to content

What is a 500 internal server error and how do I fix it?

By Ash, Founder, HosteazePublished 2 min read

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 rusty bicycle gear cluster with a slipped, broken chain, something failing inside the machine rather than out of sight.
Credit: Queven via Pixabay

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?

CauseTypical triggerClue in the error log
Faulty plugin or themeYou just installed or updated one"PHP Fatal error" naming a file in wp-content/plugins or themes
Broken .htaccess fileA plugin or manual edit added a bad line"Invalid command" or "RewriteRule" errors
PHP out of memoryA heavy page, import or plugin"Allowed memory size of ... bytes exhausted"
Incompatible PHP versionThe host or you changed PHP versionErrors about undefined functions or syntax
Wrong file permissionsFiles 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?

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?

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.

Sources

  1. MDN, 500 Internal Server Error
  2. WordPress Developer Resources, Debugging in WordPress
  3. WordPress Developer Resources, Editing wp-config.php
  4. Google Search Central, How HTTP status codes and network errors affect Google Search
A brass padlock lying open on a black background, its shackle unlocked, like a website connection without HTTPS.QuestionWhy does my website say "Not secure"?Browsers show Not secure when a page loads over plain http:// instead of https://. That usually means there's no SSL certificate, the certificate has expired or doesn't cover that version of your address, or the site isn't redirecting visitors to the secure version. Most fixes take minutes in your hosting control panel.Hosting and security · 25 November 2026A Closed sign hanging inside a shop's glass door, the shop still there but not serving customers right now.QuestionWhat is a 503 Service Unavailable error?A 503 Service Unavailable error means the server is working but can't handle the request right now. On small business sites it's usually a WordPress update stuck in maintenance mode, the hosting account hitting its resource limits, or a traffic spike. Unlike a 500 error, it's meant to be temporary.Hosting and security · 24 November 2026Rows of large cooling fans and pipework at a data centre, part of the unseen kit a hosting company keeps running.QuestionWhat does a hosting company actually do?A hosting company rents you space on servers it keeps running around the clock in a data centre. It handles the hardware, power, network, server software, security patches and usually backups, email and SSL certificates, plus support when something breaks. Your website's content, plugins and passwords normally remain your responsibility.Hosting and security · 20 November 2026A car speedometer with the needle resting near zero, how a site on struggling hosting can feel to visitors.QuestionSigns you need to switch web hostsIt's time to switch web hosts when your site keeps going down, the server is slow to respond even after you've optimised the site, the host runs out-of-date software, support takes days to reply, or renewal prices jump without warning. Measure first, so you're sure the problem is the host and not your site.Hosting and security · 19 November 2026A hand sliding a drive bay out of a server rack lit in blue, the hardware that shared and VPS hosting both run on.ComparisonShared hosting vs VPS: which does your site need?Shared hosting puts your site on a server with other customers' sites, and the host looks after everything. A VPS gives you a guaranteed slice of a server with full control, but more cost and often more work. For most small business sites shared hosting is plenty; move to a VPS only when you hit a real limit.Hosting and security · 17 November 2026

Hosting with security built in

See what comes with every Hosteaze hosting plan.

See hosting plans