500 Internal Server Error is the server's generic "something went wrong" message. The website received your request but hit an unexpected problem while building the page, such as a bug, a failed database connection or a bad configuration change.
It's a fault on the website's side. Sometimes it affects only one page or one action, such as logging in or checking out.
What you can do
- Reload the page. A one-off glitch often clears immediately.
- Go back and try again if the error came after submitting a form. Check whether your order or payment went through before trying again, to avoid paying twice.
- Clear cookies for the site or try Incognito mode. A corrupted session cookie can cause repeated 500 errors.
- Check if the site is down for everyone with our website checker or its page in our status list.
If you run the website
- Read the application and web server error logs; the real error is there, not on the 500 page.
- Roll back the most recent deployment, plugin update or configuration change if the errors started right after it.
- On WordPress, rename the
pluginsfolder to rule out a broken plugin, and check.htaccess. - Check file permissions, PHP memory limits and the database connection.
What actually goes wrong behind a 500
A 500 is the server's way of saying "something broke and I don't have a more specific code for it". The request reached the website and its software started building the page, but it hit an error it couldn't handle. Typical causes include a bug in newly released code, a database that is down or refusing connections, a configuration file with a typo, a plugin or theme update that conflicts with the rest of a site, or a disk that has filled up.
Because the error happens inside the website's own systems, it often affects everyone at once. Sometimes, though, it only affects certain pages or certain accounts, for example when one record in the database is corrupted. That's why a site can work on its home page but fail on checkout or login.
How to tell whether it's widespread
Try a different page on the same site, then the same page on another device. If the home page works but one page always fails, the bug is specific to that page and reporting it to the site helps. If every page fails, look the service up on our status pages or run the address through the website checker: we count 5xx responses as failures, so a site returning 500s to everyone shows as having problems.
Fixes for WordPress and similar sites
If it's your own site, turn on error logging, check the server's PHP or application log for the exact error, rename the plugins folder to rule out a broken plugin, and restore the last working version of any file you edited. Check you haven't run out of disk space or memory.
Questions
Is a 500 Internal Server Error my fault?
No. It's an error on the website's server. Clearing cookies can occasionally help if a broken session is involved.
How long do 500 errors last?
It depends on the cause. A failed deployment can be rolled back in minutes; a bigger outage can last hours.
Can clearing my cache fix a 500 error?
Rarely, because the error comes from the server. It's still worth a try if only you see it, as a stale cookie can send the server data it can't handle.
Why do I get a 500 error on only one page?
That page's code or data is failing while the rest of the site works. Report the page link to the website so they can find the bug.