HTTP Error 500 – Internal server error

When you receive an error "Internal server error 500" on your site, the best way to find the reason for it is to check the error log. SiteGround customers can do this from cPanel > Error log.

Check the manual for your webserver if you don't have a control panel.

You will see a list of the last error messages generated by your website.  In this list you will find detailed information about each error including: the date and time of the error, some information about the client receiving the error, description of the error and information about which folder or file is generating the error.

Here are some examples of the most common ones and how to fix them:

 

 

This could be easily fixed by just changing the permissions of the file/directory in question. You can change the permissions by using the File Manager within cPanel, or an FTP client (for example Filezilla). The correct permissions are 755. In our cPanel tutorial you can find detailed instructions for changing permissions through the File Manager.

 

 

In order to fix the issue, you should use your FTP client or the Filemanager within the cPanel and change the permissions of the file in question to 755.

 

 

The error is caused by incorrect permissions of the .htaccess file. However, such error message could be invoked if the permissions for the folder are not the correct ones either. Please ensure that both folder and .htaccess file within are set with 755 permissions.

 

 

Such error message could be invoked by several reasons:

  • The script requires more than the usual time to be processed and is being killed by our system. In order to ensure the stable performance of all other hosted accounts we have set the TimeOut for our webserver to 30 secs.
  • There is an error within the programming code of the script in question. In this case it should be revised by a professional web developer who will be able to assist you further.

If you cannot find the reason for the error 500 yourself, you may ask your host for assistance. SiteGround provides one of the best web hosting support and such problems are usually solved within minutes by our team.

You find this article useful? Click here to learn more about SiteGround web hosting experts and what else we can do for you!

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

My Facebook application is displaying ‘Method Not Allowed’

If you are encountering this problem with your Facebook application hosted on your SiteGround...

What to do if your website has been marked by Google as harmful

If you see the following warning when you visit your site: This site may harm your computer....

HTTP error codes explained

There are multiple HTTP codes that you may come across. Below you can find a summary of the most...

Cannot modify header information – headers already sent by …

If you receive a warning on your pages similar to the one below: "Warning: Cannot modify header...

I’m getting a ‘MySQL server has gone away’ error in my application

There are two main reasons for this error message to show: 1) The MySQL query you are trying to...

Powered by WHMCompleteSolution