Knowledgebase: Perl
Why am I getting the "Server: Error 500" message?
Posted by John McDonald, Last modified by John McDonald on 02 January 2009 10:31 PM

You can get a server error for the following reasons:

If the script does not contain the "#!/usr/bin/perl" header line that points to the Perl interpreter, or if the path to the interpreter(and/or a library file) is invalid.

If the first line output from the script is not a valid HTTP header (i.e "Content-type: text/html"), or if there is NO blank line after the header data. If there is a syntax error in your script. Always run it from the command-line first.

(323 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments: