What it means
A 500 Internal Server Error means the website's server ran into an unexpected problem and could not build the page. It is a general catch-all error, so it says something broke but not what. It is almost always a problem on the website's side, not your device, so visitors can usually only retry or wait while the site owner fixes it.
Common causes
- A bug or crash in the site's code, plugin or theme
- A broken or invalid .htaccess or web.config file
- The server ran out of PHP memory
- Wrong file or folder permissions on the server
- A failed or half-finished update
- The database or another service the site depends on is down
How to fix it
Work down the list. Each fix is safe to try before moving on to the next.
FIX 01Refresh the page after a short waitEASY
- Wait about a minute.
- Press
F5on Windows orCommand + Ron a Mac to reload the page. - If you were submitting a form or making a payment, check your email or account before submitting again so you are not charged twice.
Why it helps: Many 500 errors are brief glitches, such as the server restarting, and clear on their own.
FIX 02Clear this site's cookiesEASY
- In Chrome, open the three-dot menu and choose
Settings. - Go to
Privacy and security > Third-party cookies > See all site data and permissions. - Search for the website's name.
- Click the trash icon next to it and confirm with
Delete. - Reload the page and sign in again if needed.
Why it helps: A bad or outdated login cookie can trigger a code path on the server that crashes.
FIX 03Try another browser, device or networkEASY
- Open the same address in a different browser or a private window.
- Try it on your phone using mobile data instead of Wi-Fi.
- If it fails everywhere, the problem is on the website's server.
Why it helps: This quickly shows whether the problem is the site itself or something on your side.
FIX 04Check the site's status and contact the ownerEASY
- Look for the company's official status page or social media posts about an outage.
- If there is no notice, contact the site's support and tell them the page address, the time you saw the error and any reference or request ID shown on the error page.
Why it helps: Only the site's owner can fix a 500 error, and details like the time help them find it in their logs.
// RUN THIS SITE? FIXES FOR SITE OWNERS
FIX 05Read the server error logMEDIUMSITE OWNERS
- Open your hosting control panel and find the error log (often called
ErrorsorError Login cPanel, or under the site's logs in other panels). - Look for entries at the exact time the 500 happened.
- Note the file name and line number in any PHP Fatal error, or the module named in an Apache or Nginx error.
- On IIS, check the site's logs in
inetpub\logs\LogFilesand the substatus code (for example 500.19 means the configuration file is invalid).
Why it helps: The log usually names the exact file or setting that failed, which saves guessing.
FIX 06Rename the .htaccess fileMEDIUMSITE OWNERS
- Open your host's
File Manageror connect with SFTP. - In the site's root folder, rename
.htaccessto.htaccess_old(turn on showing hidden files if you cannot see it). - Reload the site.
- If it works and you use WordPress, go to
Settings > Permalinksand clickSave Changesto create a fresh .htaccess file.
Why it helps: A single bad rule in .htaccess makes Apache return a 500 for every page.
FIX 07Disable plugins and switch to a default themeMEDIUMSITE OWNERS
- In
File Manageror SFTP, renamewp-content/pluginstoplugins_oldto turn off all plugins. - Reload the site. If it works, rename the folder back to
plugins. - Reactivate plugins one at a time in
Pluginsuntil the error returns; that plugin is the cause. - If plugins are not the cause, make sure a default theme such as Twenty Twenty-Five is installed, then rename your active theme's folder in
wp-content/themesso WordPress falls back to it.
Why it helps: Faulty or incompatible plugin and theme code is a very common cause of 500 errors on WordPress sites.
FIX 08Raise the PHP memory limitMEDIUMSITE OWNERS
- Check the error log for a message like
Allowed memory size of ... bytes exhausted. - In WordPress, add
define( 'WP_MEMORY_LIMIT', '256M' );towp-config.phpabove the line that says to stop editing. - Some hosts do not let WordPress raise the limit itself; in that case raise
memory_limitin the PHP settings of your control panel, or ask your host.
Why it helps: When a script runs out of memory, PHP stops and the server returns a 500.
FIX 09Check file permissions and recent changesADVANCEDSITE OWNERS
- Back up the site before changing anything.
- On most Linux hosts, folders should be
755and files644; fix anything set very differently usingFile Manageror SFTP. - Undo any code, configuration or update you made just before the error started.
- If you use Cloudflare, view the error page's source: if it contains
cloudflareorcloudflare-nginx, contact Cloudflare support with your domain, the time and timezone, and the output ofyourdomain.com/cdn-cgi/trace; if not, the 500 came from your own server, so check it or contact your host.
Why it helps: Wrong permissions and recent changes are frequent triggers, and the Cloudflare check tells you who to contact.
Check it's fixed
- The page loads normally after a full refresh.
- The page works in a private window and on another device.
- No new entries appear in the server error log when you load the page.
When to get help
If the error log shows nothing useful or the site still returns 500 after disabling plugins and resetting .htaccess, contact your hosting provider with the time of the error and the page address. Visitors should contact the site's support team.
Questions
Is a 500 error my fault?
Almost never. It means the website's server failed, so the fix has to come from the site owner. Refreshing or trying later is usually all a visitor can do.
What is the difference between 500 and 503?
A 500 means something unexpected broke. A 503 means the server is temporarily unable to handle requests, usually because of maintenance or overload, and is expected to recover.
Can clearing my cache fix an HTTP error 500?
Rarely. Clearing the site's cookies can help if a bad login session is involved, but in most cases the server itself needs fixing.
Will a 500 error hurt my site's search rankings?
A short outage is unlikely to matter much, but pages that keep returning 500 may eventually be crawled less or dropped. Fix it as soon as you can.
Related fixes
Still stuck?
Paste the exact message and the repair bot will find the closest fix, or search it on Google, Microsoft, Apple, Reddit and YouTube.