I am getting 500 internal server error?

500 Internal Server Error is a generic error message, given when no more specific message is suitable. There are a number of causes for a 500 Internal Server Error to display in a web browser. Below is a sample error message.

This article covers the most common causes due to which internal server error occurs.

1: Check the error logs:
With any error message, particularly one as broad as the 500 Internal Server Error, you will first want to check any Apache and PHP error logs for your server. These logs can provide valuable context related to any code failures or other potential causes of a site failure. For information on where to find the logs for your account you can refer to error_logs in your public_html folder. 

2: Error within .htaccess file:
If you are using a .htaccess on your site, it may be interfering with the web page you are trying to load into your browser. Please double check the .htaccess configuration. Any syntax errors will cause a 500 Internal Server Error message to be displayed instead of your website.

To confirm whether a misconfiguration .htaccess is the cause of the 500 Internal Server error, either remove or rename the .htaccess file temporarily and then try to reload the page.

3: Php Coding time-out:
If your PHP script makes external network connections, the connections may time out. If too many connections are attempted and time out, this will cause a "500 Internal Server Error." To prevent these time outs and errors, you'll want to make sure that PHP scripts be coded with some timeout rules. Typically, however, catching a timeout error when connecting to a database or externally to remote resources (example: RSS feeds) are difficult. They, in effect, freeze the script from continuing to run.

Removing any external connections can increase both the performance of your website and decrease the chances of you receiving a "500 Internal Server Error."

4: SYNTAX OR CODING ERRORS IN YOUR CGI/PERL SCRIPT:
If it is a web page ending in .cgi or .pl that is producing the error, check your script for errors. You can refer to its permission or verify that GGI privilege is enabled on your account.

We hope that the above article was beneficial for you, if you liked it please give us a thumbs up.

Technical Support,
WebSouls 


  • 500, Internal Server Error, Troubleshooting
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

I am getting 404 Not Found error?

404 Not Found error messages can appear in any browser and in any operating system. Most 404 Not...

I am getting 403 you do not have permission to access error?

Why do we face 403 forbidden error?403 is one of the common apache error which are mostly...

After installing Wordpress I am facing internal server error 500?

Annoyed by the following error message? Not anymore!Altough wordpress is an open source platform...