Jump to content

Recommended Posts

Posted

Hello.

 

I uploaded my website on Friday to Johnny. After a few problems with plugins and having to redirect links which I managed to sort out. I asked mates to look at my website. I have had comments and experienced this twice myself. The site loading is a bit erratic sometimes it works, other times I get this internal server error message as have others, and it can be a bit slow. I'm assuming that could be traffic on the server. Is there something I need to configure? I'm a bit new when it comes to servers so not entirely sure what I'm suppose to do. I just did the getting started configuration on cpanel the step by step one. I'm wondering if the .htaccess file may need updating as when I uploaded my website on Friday. The htaccess file was dated to 23/5.

 

Any advice would be great. Thanks!!

 

Username: robdog75

Server: Johnny

Domain: robgregg.co.uk

 

Internal Server Error

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

Please contact the server administrator, webmaster@robgregg.co.uk 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 error was encountered while trying to use an ErrorDocument to handle the request. Apache/2.2.24 (Unix) mod_ssl/2.2.24 OpenSSL/0.9.8e-fips-rhel5 mod_mono/2.6.3 mod_jk/1.2.35 FrontPage/5.0.2.2635 mod_bwlimited/1.4 mod_auth_passthrough/2.1 mod_wsgi/3.4 Python/2.7.4 Server at robgregg.co.uk Port 80

Posted

500 errors can be caused by a lot of things. The most common are

  1. Exceeding Process Limit The solution is to not run as many processes. Opening cpanel, connecting to FTP, checking mail, connecting to webdisk, etc all increase your process count, and if you exceed your limit php will show 500 errors since it cannot start a new php process. This sometimes affects only the webmaster since opening cPanel and FTP etc is common when you're editing your site, but normal users won't have these errors since they will only be accessing your website not all the other services. The process limit is higher on Johnny so for some websites the solution to 500 errors might be to switch servers.
  2. Syntax Error in .htaccess If you have a syntax error in one of your .htaccess files it can cause a 500 error. The easiest way to check if this is the case is to delete or rename your .htaccess files and see if the 500 error goes away.
  3. Incorrect Permissions If the script or the directory that the script is in doesn't have the correct permissions it can cause 500 errors too. If you're running a php script the file permission should be 644. If you're running a cgi script it should have 755 permissions. Your directories should have 755 or 750 permissions.
  4. Exceeding Time Limit If your script exceeds the time limit it can be killed by the system which will also result in a 500 error. The solution to this problem is to break your long executing scripts into multiple faster scripts that can call each other. For instance longscript.php always results in a 500 error because it exceeds the time limit, but if script1.php runs for a short time, and then calls script2.php which calls script3.php they can together execute the same code as longscript.php without exceeding the time limit and being killed.
  5. High Server Load If the server is currently experiencing high server load scripts can return a 500 error when they would normally work. This is more common on Johnny than Stevie since Johnny is more unstable, and accounts that cause high load on Stevie are suspended. There isn't really anything that can be done about high load 500 errors other than trying again later when the load is lower.

Posted

Hey Krydos.

 

Thanks for the reply. I checked the error logs but there was nothing on there. I then checked the server status. It seems as though it's the server load as there is a red circle with the exclaimation mark sign next to it, It's also saying the user disk is at 98% when my disk usage for my website is just over 50%. I did try to upload a screenshot of the srvice status but it failed. So any advice would be great. If I need to tweak anything via cpanel, although like I said bit new to the tweaking a server.

 

 

Thanks.

 

Rob

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...