Why am I getting an Internal Server Error (error 500)?

Share This Post

Share on facebook
Share on linkedin
Share on twitter
Share on email

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 justwebhostit
  • 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]

Windows

If you’re running a Windows hosting package, don’t forget to recycle the app pool after making any changes to your site configuration. You can do this by logging into the hosting package, selecting ‘Application Pool’ and then selecting ‘Recycle Pool’.

WordPress

A common cause of an interal 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. We currently support PHP 5.3, 5.4, 5.5, 5.6, PHP 7.0 and 7.1 or our Linux platform. 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. Log in to Justwebhostit
  2. Select PHP Configuration
  3. Scrolling 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

Find more blogs

here

Subscribe To Our Newsletter

Get updates and learn from the best

More To Explore

How do I reset my WordPress user password?

Update the password using WordPress Tools If you would like to reset your WordPress User password, then you can use our WordPress Tools facility to do

Do You Want To Boost Your Business?

drop us a line and keep in touch