Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

premature end of script headers

Quote Reply
premature end of script headers
Can anyone help? I try and start the links script and I get the dreaded 500 Server error with premature end of script headers.

I then try and run add.cgi...and get the following. I tried the full path to links cfg but with the same error. I also tried enabling IIS in the config file...no joy

Error including libraries: Can't locate links.cfg in @INC (@INC contains: /web/ns/plumber/cgi-bin/iu /usr/lib/perl5/i686-linux/5.00404 /usr/lib/perl5 /usr/lib/perl5/site_perl/i686-linux /usr/lib/perl5/site_perl .) at /web/ns/plumber/cgi-bin/iu/add.cgi line 8.

Make sure they exist, permissions are set properly, and paths are set correctly.

All paths and permissions have been checked and rechecked.
Quote Reply
Re: premature end of script headers In reply to
I had this problem when I initially installed links. The docs say you need to make sure you unzip the files as text. What that means is when you use the unzip command (free unix utility for unzipping) pass it the -aa options...otherwise everything gets messed up. Note only giving it the -a option leaves things messed up too.