CGI script errors with: premature end of script headers

Posted in: Linux
By dePoPo
Mar 10, 2009 - 12:41:09 PM

Q: My CGI script errors with: premature end of script headers

 What does "premature end of script headers" mean?

"Premature end of script headers" is a standard PERL error. It indicates that there is a syntax error or other execution error with your script.

If you are comfortable working at a Linux command prompt, telnet into the box and try to run your script from the command line to see why it isgenerating an error.

If the script runs from the command line without error, you should not see the 'premature' error. Also, please ensure that the script is owned by a member, preferably an admin of the site where it's located, and that it has the proper permissions. (755).

On the SUN Cobalt RAQ 550 make sure the script is owned by the site owner and group

On the SUN Cobalt Qube 3 make sure the script is owned by the user if it resides in a user directory, or by admin if it resides in the central website



Visitor Comments