Technology in terms you understand. Sign up for the Confident Computing newsletter for weekly solutions to make your life easier. Click here and get The Ask Leo! Guide to Staying Safe on the Internet — FREE Edition as my thank you for subscribing!

What’s an “Internal Server Error” and How Do I Fix It?

It’s probably not your problem to fix.

Internal Server Error
An "Internal Server Error" happens within the web server attempting to show you a web page. It's usually a server-side problem out of your control.
Question: I’m trying to download software from a specific site. No matter what I try to download, I get this error message:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator webmaster@******.com and inform them of the time the error occurred and anything you might have done that may have caused the error. More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error was encountered while trying to use an ErrorDocument to handle the request.

How is this resolved?

I’m very familiar with this error. I see it all the time when setting up or making changes to websites.

The good news? It’s not your fault.

The bad news? There’s probably nothing you can do.

Become a Patron of Ask Leo! and go ad-free!


Internal Server Error?

  • It’s not really your problem, and there’s likely nothing you can do.
  • Make sure the URL you’re going to is exactly correct.
  • Links in email are sometimes broken by line wrapping.
  • Treating it like a browser problem can help.
  • If you’re the webmaster, there are probably some clues on your server.

It’s the server’s problem

An internal server error is an error on the web server you’re trying to access. That server is misconfigured in some way that prevents it from responding properly to what you’re asking it to do.

Think of it like the web’s version of a blue screen. :-) Something went so wrong on the server that it couldn’t even tell you what the problem was.

Internal Server Error

Aside from informing the site owner (who may or may not be at the webmaster’s email address included in the error message), there’s probably nothing you can do to resolve this problem. That’s because it’s not your problem.

The person who is responsible for the website needs to fix it.

It’s still the server’s fault, but…

Even though it’s the server’s fault for not handling something properly, there are scenarios where you might have inadvertently caused this. For example, errors in URLs can cause it.

One scenario: you saw a link in an email or webpage, and rather than clicking on it, you copied and pasted the link in a web browser. If you accidentally didn’t select the entire link and left off a few important characters, you might see this message.

Similarly, if you’re typing in a URL from a book or other source, and don’t type it in exactly, you might see this message.

To be clear, the server should be able to handle whatever you did cleanly and report errors in some useful way. If the server doesn’t, and you get an Internal Server Error message, it’s still the server’s fault.

There are some straws to grasp at

An internal server error happens when the server encounters a situation it doesn’t know how to handle.  Occasionally, your browser can be the source of these kinds of errors. You can try these steps to see if they’ll help:

  • Clear the browser cache
  • Clear cookies
  • Refresh the page (F5)
  • Try a different browser

While it’s more than likely these won’t work, there’s always a chance they might, and they are simple to try.

If you’re the webmaster…

What if you’re the webmaster?

Nine times out of 10, this error results from one of two common errors:

  • An error in a CGI script caused it to fail or output an error message before it started producing valid HTML. It happens to me all the time if I have a syntax error in one of my Perl CGI scripts.
  • A permissions issue occurred when attempting to access a CGI script. Depending on how your web server is configured, it’s not enough for the script to have “execute” permission; it must also be owned by the correct user and belong to the correct group. I can’t tell you what that should be, because it varies widely from server to server (and even from site to site on the same server). My best recommendation is to look at the attributes of a script that is working and copy that.

The format of the error described here is common for Apache web servers. That means we can also look for common error logs. Once again, the location of these logs varies a great deal based on specific web server configuration.

  • access_log is the log of successful accesses. On a shared or virtual hosting server, there may be many of these: one per website, often with site-specific names or in site-specific locations on the server.
  • error_log is the log of errors. On some hosts, there is an error log per site. On others, each site has its own access_log, but there may only be a single error_log for the system.
  • suexec_log is the log most people forget. It deals with the permissions used to execute CGI and other scripts. When a CGI fails to execute because its ownership is wrong, the generic internal server error shows in the error log, but a more specific error detailing the permissions involved appears in this log.


The message “Additionally, a 500 Internal Server Error was encountered while trying to use an ErrorDocument…” indicates a second configuration error on the server.

When the web server encounters an error of any sort, the page it displays to report the error is just another .html file stored on the server. This error means that trying to display the error page for the first error (the internal server error) actually generated a second error (also an internal server error, in your case).

At that point, the server just gave up.

Do this

Subscribe to Confident Computing! Less frustration and more confidence, solutions, answers, and tips in your inbox every week.

I'll see you there!

Podcast audio


84 comments on “What’s an “Internal Server Error” and How Do I Fix It?”

  1. hi. im hosted by a friend and im getting this error too while tryingto upload files using http://ftp…my index.html wont load at all…
    when i added a index.html file, if i type my site url in the browser, the ending is index.php? even though i dont have any php files added to it? it just automatically does it, and when i try to rename my html files as .php i get that error message…and i dont know how to edit the access file :S

  2. NOT TRUE. Or ot is true about 10% this article.
    It is the client’s FAULT! Just check your .htaccess file… argh!

    .htaccess is a server-side component. Internal Server error is, by definition a Server error.

    – Leo
  3. One question: I am useing mozilla firefox to view my yahoo email account and there’s been a new feature where you can “connect” to different people in your address list. But I chose to ignore that, so I clicked “inbox”. There’s a small light blue text box that says “loading…” below the tab (yahoo toolbar). I waited for many minutes and it seems that nothing is happening. If however, I decide to right click on “inbox” and choose to open in another tab, I would be able to go into that page, but the problem is that I can’t push send because I can’t “open” send in another tab. Who should I bring this issue to?

  4. yes, this problem happens to many times when i try to open my own site? can you tell me what ca I do to reconfigure again

    Nope. There are literally thousands of possible causes. Check the error logs generated by your web server for clues.

    – Leo
  5. hi,

    in most cases the problem is your .htaccess !!!
    sry… i can’t tell u what you have to add to your htaccess or what to remove because i’m not on my computer right now… :S

    but search google for this error and htaccess how to configure it.

    best regards, john

  6. hi,

    it’s john again :>
    it can be your .htaccess or if you set the premisson of a file or folder to 777 change it back to 755 or 644 or 666 and check if the error will diappear. ;)


  7. Thank You very much. I was getting the same error message and took your advise. I had changed permissions in the file public_html/admin/configuration and public_html/admin/admin.php my in zen cart root folder as I was adding the google base feeder contribution. I was getting the above error message when I tried to access (My Admin configuration) for my store.

    I changed the permissions back to 755 and it is now working. I am very grateful to John for the info. Thanks

  8. I made a Sharepoint website for my office and everything was working fine until today. Now, the main page gives an Error 500 while every other page works fine. Because it was made using Sharepoint, the code is not accessible (I think) offline. Any suggestions?

  9. I have a similar problem.. however.. the message I get is:
    You don’t have permission to access /forum/memberlist.php on this server.

    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.


    Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/ mod_jk/1.2.25 mod_perl/2.0.4 Perl/v5.8.8 Server at Port 80

    This comes from a forum I belong to. When a new post comes up it sends me a message allerting me of that new activity. Until recently, I could click on the link in the post and it would take me to the forum topic and the new post. Now I get this error message.. The owner of the site does not have the problem I experience.

    Help???? Thanks, Bill

    Nonetheless, it is a server problem. Double check that you’re going to exactly the right address, and that you have javascript enabled. Sometimes poorly configured servers choke when things aren’t exactly as they expect.

    – Leo
    • It may be that you do not have permissions to view the member list, especially if you are not registered or logged into the site.

      Make sure you are logged in or that you are not using outdated cookies etc. and clear the cache if needed, as recommended elsewhere here. Since this is a reply to posts over ten years old remember that operating systems and browsers are very different in many ways now yet how you deal with computing problems are still about the same. Analysis, strip down and build up from a lowest point if needed and observe the results, rinse and repeat (not literally of course).

      If you know of the forums site related to your platform, look it up and search there as well. The posts of site administrators can be of great assistance, to you and your site owners. Don’t forget to look for problems associated with your OS and browser as this is every bit as important (also mentioned previously).

      While as I said I am replying to a very old post, the information given throughout is just as valid. It was valid when I was a teenager, sometime after dinosaurs got calculators.

  10. this happens to me when im trying to visit a site but after reading
    this (my english is not so good)i think i get its the server
    that somthing is wrong to not my computer ?

  11. Hi, I have successfully installed PHP 5, MySQL 5.1, Apache 2.2 and phpMyAdmin. I’ve test the phpinfo(); and it works fine. Besides, i have tested the connection between MySQL and PHP and it connect well. I have 2 php file-1)Form.php & 2)Insert.php. The form will undergo the insert.php to insert the data into phpMyAdmin.

    However, i upgraded from IE7 to IE8 and received the http 500 internal server error. I still could display my phpinfo(); and form.php. But when i submit the form after upgrading my IE, i received the internal server error. Anyway to resolve this? Thank you in advance!

  12. i am facining interal server error problem from last 5 can i fix this problem. due to this error, i can not open & download program

  13. when you encounter this error
    What you need to do is to change the permission of www to 750 and your index file to 644

    A) that’s for server owners, and B) it’s only one of 1,000’s of different server-side issues that could cause this problem. In fact, it’s one of the least likely causes.


  14. This error is not always internet fault. It can also be user’s fault. Some malware can slow down the speed of internet and the effect is the same

  15. I am a site owner and ive been told by 1 person that they cant access the site and it just says ‘Internal Server Error’ but i have asked quite a few different people to try and access it and theyve all come back to me saying theres no problem for them. and im not having any problems.. could it be something to do with the person trying to visit the site as its strange thet they are the only person to have the problem

  16. i saw error 500 on many browsers while accessing a certain page.. 2 firefox profiles did not show it. no infections, no errors in the error log(cpanel). it was gone after i cleaned my cache. servers fault?

  17. for sometime now my computer has shut down when ever it wants to when I reboot first thing I see is internal in blue at right top. I have to shut down and reboot. I have check all wires, downloaded window’s xp again. I have regcure I use often. Yet it is still doing this shut down what can I do???? Please email me with any answers you may have. Thanks

  18. Hello

    to get the detailed error behind 500, no need to check the logs just do the following :

    1) go to an IE page –> tools> Internet Options> Advanced –> uncheck show friendly http error messages

    2) go to IIS, –> your site –> Features view –> ErrorPages –> select 500 error –> click Edit feature settings,

    then click detailed errors and click ok

    3) recycle the pool

    4) try to generate the error

    now you will have detailed error

    That’s all :)

  19. Our website sometimes gets this error. I use a cgi script called Easy File Manager (EFM) to manage clients’ uploads and downloads. I asked the support at EFM and they said that if the script works once it should work all the time. This seems to make sense. What do you think?

    Things are never that simple. Smile Quite often scripts don’t handle unexpected error conditions for example – like say a problem in a parameter that’s passed to them – and this can result. Sometimes server problems (disk space, memory, who knows what) can also impact the script. So no, I’d never tell someone “if it worked once it should always work”. Life’s just not that easy.


  20. I have been using aMSN with Mac OS X version 10.6.4 for over a year with very little problems and today the 30 jul 10 it has come up with internal server error and wont work.
    What can i do?
    Any (layman term) help would be appreciated.

  21. I had a similar problem but found that things started working when I removed the .htaccess file. Played around with it for a bit and found that the following lines were causing the problem:

    # Set some options.
    Options -Indexes
    Options +FollowSymLinks

    # Set the default handler.
    DirectoryIndex index.php

    I just restored the original .htaccess, deleted those lines.

  22. Okay what if you’re the webmaster, but dont own the server, you pay for hosting? My error logs say: its a script called:.htaccess even after correcting it same error.

    You’ll have to get help from your web host, or review the contents of your .htaccess file with the error.


    • Read the article you are commenting on. There’s nothing you can do other than contact the owner of the offending website.

  23. This falls under the first common error but I’ve often had this error caused by an infinite loop within my code.. which causes the web page to just time out before it can return an error.

  24. Not a good explanation of the error. The error can appear on one computer but not another when accessing the same site. I am having that problem now. My desktop gets the error, the laptop works fine.

  25. “error_log is the log of errors. One some hosts…..”

    Thank you for this page! It had everything I needed all in one place.

  26. Thanks, that helped me, especially by pointing me to check the logs which told me exactly what the problem was.

    Troubleshooting 101: Always check the log file/s for clues or, in many cases, answers

  27. when i try to load the google homepage it comes up
    with 500 internal server error it loads every other page bar the google page how do i fix this please anyone

    as stated in the article and internal server error is not an error on your computer or something that you can control. It’s an error detected by handled improperly by the server that you’re connecting to, in this case Google. I’m not hopeful but you can try clearing your browser cache:


  28. You left out one very simple, very common, very easy to fix reason, .htaccess changes can cause this, this also links back to give you the additional 500 error.
    So check your .htaccess file and see if its been changed, and that all new changes are spelled right. If there is doubt, simply undo the last change to the file and save see if that wont solve your problem. Cheers

  29. internal 500 error !!!

    I fixed this by including

    print “Content-Type: text/html; charset=iso-8859-1nn”;

    under the perl include tag

    I tested the web page from wamp and it got rig of the error

  30. I am typing in my user name and password to a career website but i keep getting the error.

    The strange part is the website is accessible when browsing through the jobs offered but when i select a certain position and fill in my password details i get the error.

    I have managed to change my password by on typing the new one I get the same error, I am using a corporate shared wifi system,could this be the reason i can access the other company servers to make applications?


  31. @Maurice
    I’m not sure what’s causing that problem, but if I understand correctly, you’re accessing a career website using your company’s network? If that’s the case, you should be more worried about your company finding out that you are accessing a career website. Everything you do on a company’s website can be viewed by them. It is not recommended to access career websites using your company’s computers or wif-fi access.

  32. I have a problem for 2yrs this computer system JWM3MC1 595B is protected by a password authentication system. you cannot access the data on this computer without the correct password
    what can I do other than change the mobo

    • It might be a problem with your browser’s cache. Sometimes the remnants of older pages in the cache can cause all sorts of browsing issues. I’m not familiar with how to do this in a Galaxy Tab, but I’d suggest you clear the browser cache.

  33. Many, many thanks, Leo!!! Kept receiving internal error message every time I tried to access
    I had copied/pasted the webpage’s link to make a referral. I did a system restore, thinking the problem
    originated with Google’s Chrome; however, that did not resolve the problem…neither did adding
    to my security’s unblocked websites. Then I googled the error in various ways and ended up at your site.
    Thank heavens! First, I cleared my browsing history following your directions; this was unsuccessful. So, I
    changed to Bing…bingo!!! So far, no problem!!! Once again thank you many times over; now I can go back
    to saving money!!!

  34. I commonly see this exact error message when I use a network stress tester on other peoples websites. I am referring to executing a DOS attack (Denial of Service) or DDoS (Distributed Denial of Service) using numerous computers of mine and or botnets. CMD run as Admin, i.e., ping -t -l 65500.
    Ping and reply directly with the server. Its a packet flood. Also the HOIC (High Orbit Ion Cannon with booster script). Once they are down I have removed them from cyberspace. The IP is masked with a good VPN. Did any of you ever consider that this may be happening to you or could happen to you at some time? you will surely see this error then.

    • You’ll need to contact the site owner. That’s a server error response that you can Google – as you’ll see it has to do with the types of responses exchanged between the browser and server.

  35. I need help to fix the problem because any contact e-mail sent from my business website does not connect / link to my business e-mail address. That link is disconnected, and is causing us to loose business because any e-mail from our website cannot come through at all. But it was working very well when our business website was first built eight years ago by 2007.

    So, please contact me back because I need to know if this is something you can help us fix it.

    Thanks, and I will look forward soon for your response.


  36. how to remove the fatal error: Call-time pass-by-reference has been removed in /var/www/html/ on line 23?
    it is orbit open ad server.

  37. A 404 error happens if typed a URL to a page doesn’t exist. If you got there by clicking on a link, it means the error was in the link itself and there’s nothing you can do other than notify whoever posted the link. The 404 error you got was a customized message. That indicates that you went to a real website, but tried to go to a non-existent page on that site.

    Here’s a sample of a 404 error on Ask Leo!

  38. I’ve been uploaded my Codeigniter Project to my server. But I used an addons domain. And I have a problem with my .htacces.

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator at webmaster@{removed}.com to inform them of the time this error occurred, and the actions you performed just before this error.

    More information about this error may be available in the server error log.

    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

    Apache/2.4.16 (Unix) OpenSSL/1.0.1e-fips mod_bwlimited/1.4 Server at Port 80

    Please help to resolve this problem.

  39. I am trying to purchase a package in a game when I press the package I want all it says server error, it doesn’t even go to pay. How can I fix that

    Thank you

    • If it’s a server error then that means there is a problem with the site. You’ll need to contact their support team and ask them to fix it.

  40. Access Denied! Your address is blacklisted. More information about this error may be available in the server error log. how can i get the information from that site

  41. Howdy! This iѕ ind of off topic bbut I need some guidance fom аn estabvlished blog.
    Ιs it tough to sett up ypur own blog? Ӏ’m not very techincal Ƅut I can figure things oᥙt pretty
    fast. I’m thinking аbout setting up mʏ own but I’m nott ѕure wheгe to start.

    Ɗo you havе any рoints oг suggestions?

    Thank you

  42. Hi sir am saleem fm pak going to request you that when I open the page my play win 4 .com today result shown but when I go to previous page result then internal server error block the previous result best regards

  43. System Error
    The server encountered an internal error and was unable to complete the request.
    Please try after some time.
    If the problem still persists, please clear browser data and try again. Thanks..!!


    This error coming from
    i cleared browsing data but the problem still exist

    • I am also facing the same problem since the last seven days. I did whatever that was suggested but the problem still persists. I contacted the help desk, but they did not give any solution.

  44. when i try to go to one certain friends page from facebook i get the 500 internal server error but i can go to other friends pages fine but that one it wont let me.

    • Please read the article you are commenting on. It answers your question. The error is on your friend’s website.

  45. the most annoying error of all is maybe 500 internal server error, you never know when it hits you and frustrate the hell out of me to fix.

    • Why is it frustrating? It only means the website you are trying to access is having problems. Not much different from going to a shop and finding it’s closed due to illness or something. Just go to a different shop of come back later.

  46. Is the message: “Bad Gateway The proxy server received an invalid response from an upstream server.” a similar problem? If not, how does one fix it?

  47. Using status codes, the web server tells an internet user’s browser (client) whether a request (i.e. accessing a website) was successful or not. If the browser receives the 200 status code, it knows that everything went well. However, the user never sees this message since the requested content appears instead. The situation is different with the 400 and 500 status codes. While the former indicate client errors, the latter are server-related. The Internal Server Error 500 is a collective status code for server errors. Therefore, at first glance, it is not possible to determine where the error actually lies. The user only knows that the server has reported an unexpected error.

  48. I get just the “Internal Server Error” when I attempt to sign in to my aol email. When I page back and sign in again, it takes me right in to my email as normal. Any thoughts on this?

  49. ‘Webkit encountered a internal error’ –
    just a ploy used by Apple to tempt users to replace their outdated Ipads
    I have no trouble opening these wepages on even computers runnning windows XP

  50. I often get a variant of this, the Cloudflare 524 error. I get this error when and API I am posting to is doing some intense processing and craps out or times out at some point. If you read HTML of the response, it also says “Internal Server Error”. It doesn’t mean that Cloudflare is down, it means the server errored.


Leave a reply:

Before commenting please:

  • Read the article.
  • Comment on the article.
  • No personal information.
  • No spam.

Comments violating those rules will be removed. Comments that don't add value will be removed, including off-topic or content-free comments, or comments that look even a little bit like spam. All comments containing links and certain keywords will be moderated before publication.

I want comments to be valuable for everyone, including those who come later and take the time to read.