Why do I get an Internal Server Error 500 and how to fix it?

A white screen or Internal Server Error (error 500) usually means a script used by your website is throwing an exception and/or fatal error. When this happens, it will be logged by our system and you can view recent errors inside the Access/Error Log of our control panel.

A ‘500 Internal Server Error’ message on your site is frequently due to a mistake in the site file such as a .htaccess file or web.config file.

The first step in troubleshooting this is to check the Access/Error logs. To get these:

  • Login to your hosting Control Panel
  • Select the package that is showing the internal server error
  • Select Access/Error Logs under the Logs and Stats section

You’ll want to look at the ‘Error Logs’ section and see if you can see the file path where the issue is. For example, you may see:

[code]www.yourDomain.com [Tue Sep 05 09:49:41 2017] [alert] [client xx.xxx.xxx.xx:xxxxx] /home/sites/xx/x/xxxxxxxxx/.htaccess[/code]

A common cause of an internal server error on WordPress sites is if you are running an incompatible PHP version. Some errors are thrown if the server is running a version of PHP that is not compatible with the website code. You can switch between all of these versions using the ‘Switch PHP Version’ icon inside the control panel

If you’re running WordPress, you should check if your WordPress admin area is still accessible. This is usually accessible by visiting http://your-domain.com/wp-admin.

If it is, we’d recommend disabling each plugin and theme and revisiting the site in turn to try and identify the root cause.

Increase the PHP Memory Limits

Sometimes the internal server error may occur if you are exhausting the PHP memory limit. You can increase this by:

  1. Logging in to your hosting Control Panel
  2. Select PHP Configuration
  3. Scroll down until you see memory_limit. Change this to 1024M, and select Update PHP Configuration
  4. Retry the page that was showing an internal server error by refreshing using CTRL + SHIFT + R. If this did not work then you should set the memory limit back to 512M