Site Beginner

Learn How to Build Websites

  • Make a Website
  • Start a Blog
  • BlueHost Review
  • About
  • Blog
  • Contact
You are here: Home / Apache / What is a 500 Internal Server Error and How to Fix It

What is a 500 Internal Server Error and How to Fix It

A common error message that you might see when creating your website is a 500 Internal Server error. The error is particularly frustrating because it gives you no information about what specifically caused the server error. The steps in this article should help you to diagnose and find what is causing your 500 Internal Server error.

Contents

  • How the 500 Internal Server error appears
  • What causes a 500 Internal Server error
  • Fixing the 500 Internal Server error
  • If you still can't fix the internal server error

How the 500 Internal Server error appears

The internal server error message can be customized by each website that you visit, which means that the error might appear in various different forms when you experience it. A few of the common examples of how this error appears are:

"500 Internal Server Error"

"HTTP 500 - Internal Server Error"

"Internal Server Error"

"HTTP 500 Internal Error"

"500 Error"

"HTTP Error 500"

If you're using Internet Explorer and get the dreaded The website cannot display the page message, this might be a 500 Internal Server Error as well. You can check this by looking for the 500 in your IE toolbar.

What causes a 500 Internal Server error

A server error can be caused by any number of things from uploading the incorrect file to as bug in a piece of code. The web server is telling you that something went wrong, but it's not sure exactly what that is.

It's a server-side error which means it might be something to do with the websites programming or configuration settings.

If the server is using Microsoft IIS software rather than Apache, there may be additional clues in the error to help you pinpoint the issue. For example, a 500.19 means the server configuration data is invalid. You can see the list of Microsoft server specific error codes here.

Fixing the 500 Internal Server error

The problem here is with the server, not your computer or browser, but it may be that there are a few issues with your connection to the server that are causing the problem. Here are few solutions that might help to fix the error:

  • Reload the web page with a “hard refresh”. Sometimes the 500 error happens when multiple people visit the site at once and a simply refresh will resolve it. If you do a hard refresh you'll force the browser to connect to the server and download the latest version of the site. The keyboard shortcut for this is:
    • Windows: Ctrl + F5
    • Mac: Apple + R or Cmd + R
    • Linux: F5
  • Changing your file/folder permissions. You can login to your server using FTP and find the files or folders that are returning the error and change the file permissions to see if that fixes the problem. In general the file permissions should be set to 644 for files and 755 for folders but this may depend on any software you are using. You can make these changes in FileZilla by right-clicking the file or folder and choosing the File permissions… option.
  • Check your .htaccess file. If you are running an Apache server and are using the URL rewrite engine, check to make sure it's set up correctly. Often this means the mod_rewrite needs to be enabled in your httpd.conf.
  • Increase the timeouts for the server and scripts. Sometimes the 500 Internal Server error is because the server timed out, or a script you're running timed out. You can increase the Apache server timeout in httpd.conf by changing TimeOut</code from the default od 300 to:
    TimeOut 600
    

    If you're running a script, like PHP for example, you can increase the time out of this as well. For PHP this would mean changing the max_execution_time from the default of 30 (seconds) to something longer:

    max_execution_time 60
    
  • Clear your browser cookies and cache. This is the one of the first things and tech support will advise, and while the server errors are not caused by either cookies or the cache, it might be that the error has been fixed and you are viewing the wrong version of the site because of them. It's worth doing as it only takes a few minutes in your browser's settings.

If you still can't fix the internal server error

If you've tried to troubleshoot your 500 server error and still can't fix it, then you may need to speak to your web host and see if they are able to find what process or script is causing the error.

If you are using a commercial web hosting company their customer support should be able to provide information on how to fix the error and in many cases they will apply the fix for you at no cost.

(Visited 5,463 times, 1 visits today)

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

39 − 38 =

How to Make a Website
A complete guide for beginners.

Want to learn how to make a website like this? Check out our beginner's course now. It's completely free!

GET STARTED

Popular Posts

  1. How to Start a Blog Using WordPress
  2. How to Point a Domain Name to Your Site
  3. An Ever Growing List Of Ways To Make Money Online…
  4. How to Accept Credit Cards on Your Website
  5. What is a Parked Domain & How Does It Work?
  6. The Best Domain Registrars To Use In 2020
  7. How to Pick Profitable Website Ideas
  8. Choosing a Free HTML Editor to Build Your Website
  9. What is a Domain Name and How Do They Work?
  10. What is Affiliate Marketing?

How to Start a Blog
A complete guide for beginners.

Want to learn how to make a blog? Check out our beginner's course now. It's completely free!

GET STARTED

Categories

  • Apache
  • Building a Website
  • Code
  • Domains
  • General
  • Make Money Online
  • Reviews
    • Ecommerce
    • Website Builders
  • Web Hosting
  • Website Traffic
  • WordPress

Amazon Affiliate Disclosure

Sitebeginner.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to amazon.com. Find out more here.

FTC Disclosure

I may receive customer referral fees from companies mentioned on this website, this does not affect the price you pay for any products you decide to buy. All data & opinions on this website are based on my experience as a paying customer.

  • Best Blogging Platform
  • Best WordPress Hosting
  • Online Business Ideas
  • Shopify Review

Copyright © 2007-2021 All Rights Reserved.
Site Beginner · About · Create a Blog · Learn

Copyright © 2021 · SB2 on Genesis Framework · WordPress · Log in