Web Hosting Talk







View Full Version : premature end of script headers


Loon
09-20-2003, 02:22 PM
Hi

Trying to run the following cgi script
http://www.blosxom.com/downloads/blosxom.zip

It returns a 500 internal server error page, path to perl is correct so are the permissions of the directory and the file (755)

I think it was originally written to run on a mac OS but should be compatible with *nix

Error log just shows "premature end of script headers in /the_file"

I can't see what line in the script might be doing that, has to be a line somewhere that just needs changing to "print" perhaps.

Anybody run this script before, or can see what the problem is, i'd be grateful :)

Chas
09-20-2003, 11:59 PM
Hi XeroMedia,

It looks fine to me:

[20:56][piper@localhost:~/download]$ perl -cn blosxom.cgi
blosxom.cgi syntax OK
[20:56][piper@localhost:~/download]$


Try doing a syntax check from a shell and see what happens. Maybe you are missing a required module?

~Charlie
:wq

Loon
09-21-2003, 07:18 AM
It's ok, fixed. :)

thanks for your help.

Knogle
09-21-2003, 08:58 AM
Care to tell us what the problem was, XeroMedia?

Loon
09-21-2003, 09:41 AM
I use the auto mode in my FTP client, and for some reason i had it set to upload CGI files in binary.

I guess the client did something similar, or used the file manager.