N Gauge Forum

Notices, Help With Problems and Your Forum Ideas... => Forum Ideas and Problems. => Topic started by: ScottyStitch on April 15, 2015, 11:40:18 AM

Title: Error Message
Post by: ScottyStitch on April 15, 2015, 11:40:18 AM
I'm getting this error page when clicking on some links. Seem sto be intermittent.

500 - An Error Has Occurred. Please Check Your Scripts
An error has occurred and the server was unable to complete your request. The server has reported "internal server error" as it it not able to determine the cause of the problem.
The most common reason for seeing this page is because of a website scripting error. Website administrators should check the following:

Incorrect permissions
The top cause of this error is incorrect permissions on a script or directory. Directories that contain web content (including cgi scripts) must be mode 755. CGI scripts must also be 755. PHP scripts outside cgi-bin folders must be mode 644.

Invalid script interpreter
The script interpreter is defined on the first line of the script after the #! and must exist on the server. This is usually perl and needs to be '/usr/bin/perl'. If you wish to use php, please use '/usr/bin/php5-cgi'. These paths can vary from system to system and it's important to ensure that they're correct for this server.

Script uploaded in binary mode
Text files are very slightly different between Unix and Windows platforms. If you upload in ASCII mode, the ftp server will translate the files to Unix mode for you if necessary. If you upload in binary mode, it won't. CGI scripts are one of the few places on web servers where this difference actually matters.

Script did not output headers
CGI scripts must output HTTP headers. If you're using PHP, it will do this for you. If you're using Perl, you must do it yourself or use a helper module to do it for you. You must also ensure that the headers are always the first output generated by the script. It's not uncommon for test or debugging code to output a message before the headers and that will cause the server to treat the script as broken.

Syntax error in script
This error will be generated if scripts have syntax errors and don't actually run successfully. You should obtain the relevant interpreter for your script and try to run it before uploading as this is the easiest way to ensure that there are no syntax errors.

Script is trying to use a module not installed on the server
Perl scripts will usually die with an error if a module the script requires is not installed. If you suspect a module you require is not installed, please contact support.

Error in .htaccess
This error will be returned if there is a directive Apache does not understand in the .htaccess file.


What to do if all else fails
If you've checked all of these things and can't fix the problem, our support staff will be able to find out more specific details of the actual problem and give you more detailed information on how to resolve it.
Title: Re: Error Message
Post by: austinbob on April 15, 2015, 11:48:04 AM
Yes, I got one of those just now when trying to post. :beers:
Title: Re: Error Message
Post by: Mustermark on April 15, 2015, 12:06:07 PM
Me too.
Title: Re: Error Message
Post by: deibid on April 15, 2015, 12:59:22 PM
Yes, it happened to me a couple of times too.
anyway...
:NGF:
Title: Re: Error Message
Post by: Tank on April 15, 2015, 01:42:43 PM
Thanks everyone.  This should just be a case of the forum putting too much load (or stress) onto the server, or, others websites that share our server causing a problem.  If you could report it again here if you get it again for a period longer than a few minutes that would be great.

:thankyousign: