A visitor opens your website and sees "500 Internal Server Error" instead of your homepage, your shop or your booking form. Nothing on their side caused it, and nothing they do will fix it. Until you find the problem, every visitor who arrives gets the same blank error and leaves.
The good news: most 500 errors come from a small number of causes, and many of them trace back to the last change made to the site. If you only want the short definition, read what a 500 internal server error means. This guide is about getting your website working again: the usual causes, a step by step check you can run yourself, and what to give your host or developer when you need help.
What a 500 error tells you, and what it does not
A 500 error comes from the server that runs your website. The visitor's browser, phone and internet connection are fine. The page is also not missing: that would be a 404 error, which needs a different fix. A 500 means the server tried to build the page, something went wrong along the way, and it could not say what.
That is why the message is so vague. You may see it written as "HTTP 500", "Error 500", "500 Internal Server Error", "This page isn't working" or just an empty white page. The real reason is almost always written somewhere else: in the server's error log, with the time, the file and often the exact line that failed.
Before you change anything, note one thing: is the error on every page, on one page, or only when someone does something, like sending a form or paying? A whole-site error points to the server or a site-wide setting. One page or one action points to the code, plugin or form behind that part.
The usual causes of a 500 error
A recent change to code, a plugin or a theme
This is the most common cause by far. A new plugin, a theme update, a small code edit or a new piece of custom script works on its own but breaks when it meets the rest of the site. If the error started right after a change, that change is your first suspect.
A broken configuration file
Servers read configuration files to decide how to handle each request, such as .htaccess on many Apache servers. One wrong character in such a file can stop every page from loading. A change of the server's programming language version, for example a PHP upgrade by your host, can have the same effect when your site's code is older than the new version.
Wrong file permissions
Every file and folder on a server has permissions that say who may read, write or run it. When files are uploaded or moved, these can end up too strict, so the server cannot read your files, or too open, so the server refuses to run them for safety reasons. Both can show up as a 500 error.
The server ran out of memory or time
Hosting plans set limits: how much memory one page may use, how long a script may run, how much disk space you have. A heavy page, a large import, a busy moment or a full disk can push the site past those limits. The error then often comes and goes, appearing at busy times and disappearing when it is quiet.
A database that does not answer
Many websites read their content from a database. If the database is down, overloaded, or the login details in the site's settings changed, the server cannot build the page and gives up with a 500.
A problem at your hosting provider
Sometimes the cause is not on your site at all. Hosting companies have outages, maintenance and network problems too. If nothing changed on your side and the error appeared out of nowhere, check your host's status page.
How to fix a 500 internal server error, step by step
Work through these steps in order. The first ones take seconds; the later ones need access to your hosting account or a developer.
1. Reload the page and try again in a minute
A short overload can cause a single 500. Reload the page, then open it in a private browser window and on your phone over mobile data. If it works again everywhere, keep an eye on it. If it fails everywhere, the problem is real and on the server.
2. Check how much of the site is affected
Open the homepage, a few other pages and the parts that matter most for your business: the contact form, the shop, the booking page. Write down which ones fail. This tells you, and anyone who helps you, where to look.
3. Undo the last change
Think back to what changed just before the error appeared: a plugin you installed, a theme or software update, a code snippet, a new form, a setting in your hosting panel. Undo that change first, or restore the backup from just before it. This single step fixes a large share of 500 errors.
4. Turn off plugins and custom code one by one
If you are not sure which change caused it, switch off recently added plugins, extensions and custom code one at a time, and reload the site after each one. When the error disappears, you have found the culprit. If you cannot reach your admin panel at all, your host's file manager usually lets you rename a plugin's folder so it stops loading.
5. Check the configuration file and file permissions
If you or someone else edited a configuration file such as .htaccess, put back the previous version. Then check file permissions in your host's file manager: on most servers folders use 755 and files use 644. Never set files to 777 to "make it work": that opens your site to anyone.
6. Look at your server limits
Your hosting panel shows how much memory, processing time and disk space your site uses. If it sits at the limit, free up space, stop the heavy job that is running, or ask your host to raise the limit or move you to a larger plan.
7. Read the error log
Most hosting panels have a section called Logs or Error log. Find the lines from the moment the error happened. They usually name the file and line that failed, such as a missing function or a database that refused the connection. Even if the line means nothing to you, it tells a developer exactly where to start.
8. Ask your host for help
If none of the above helps, or you have no access to the server, contact your hosting provider. Check their status page first, then send them the details from the next section. Hosts can see server logs and limits that you cannot.
What to hand to your host or developer
The more precise your message, the faster and cheaper the fix. Send:
- The exact addresses that show the error, and the ones that still work.
- When it started, with the time zone, and whether it is constant or comes and goes.
- What visitors see, ideally with a screenshot.
- What changed just before: updates, plugins, code, settings, a hosting change.
- The lines from the error log around that time.
- What you already tried, and what happened after each step.
How to keep 500 errors from coming back
You cannot prevent every server problem, but you can make them rare and quick to fix:
- Test changes before they go live. Try a new plugin, theme or code change on a copy of your site first, not on the site your customers use.
- Keep a way back. Make sure you can back up your website and restore it, and take a backup before every bigger change.
- Update one thing at a time. Keep your website software updated, but not everything at once, so you know which update caused a problem.
- Hear it before your customers do. Website monitoring checks your site every few minutes and tells you when it returns errors.
- Make maintenance a habit. Small regular checks are part of why website maintenance matters.
A 500 error that lasts minutes does little harm. One that lasts days does more: search engines that keep finding errors visit your site less often and can drop the failing pages from their results until they work again. Our guide on crawl errors explains how to check this, and how to handle website downtime covers what to do when the whole site is offline.
How WEMASY lets you undo a change that broke your site
On a WEMASY website, every change you, the AI chat or a connected tool makes is saved in your site's history. On the Versions page you can see what changed and when, go back to an earlier moment or to what was live before, and publish again. Going back does not delete anything: WEMASY saves the step back as a new change, so you can undo it the same way if you change your mind. For bigger changes you can work in a version, a copy of your site where you try things while visitors keep seeing the current site. The steps are in make a version live and roll back.
Frequently asked questions
Is a 500 error caused by my visitor or by my website?
By your website. A 500 error comes from the server that runs the site, so there is nothing a visitor can do about it except try again later. The fix is on your side or at your hosting provider.
Does a 500 error hurt my Google ranking?
A short error of a few minutes has little effect. If pages keep returning 500 errors for hours or days, search engines visit your site less often and can drop those pages from their results until they work again. Fix it quickly and the pages usually come back.
What is the difference between a 500 and a 503 error?
A 500 error means something went wrong on the server that it cannot name. A 503 error means the server is temporarily unavailable, for example during maintenance or when it is overloaded, and it expects to be back soon. Both come from the server, but a 503 usually clears up by itself.
Can a 500 error happen on only one page?
Yes. If only the contact form, the checkout or one page fails, the cause is usually the code, plugin or form behind that part of the site. A 500 error on every page points to a site-wide setting, the server or the hosting provider.
How long does it take to fix a 500 error?
If the error started after a change you can undo, often a few minutes. When the cause is unclear, reading the error log and checking the server with your host or developer can take longer. Sending them precise details speeds it up.
Will clearing my browser cache fix a 500 error?
Rarely, because the problem is on the server, not in your browser. Opening the page in a private window or on another device is still useful: it shows whether the error is fixed for everyone.