Re: CGI Error
On Sun, Dec 07, 1997 at 05:19:01PM -0500, Paul Miller wrote:
> hmmm... that means something is wrong with Apache, suEXEC, or Perl 5.004.
> Do I need any special perl libs/files for cgi?
> I've been able to run files which use sh (bash) and awk fine.. so I think
> there is something wrong w/ perl.
Not at all. Just because it runs from the command line doesn't mean
that everything that comes out is okay by Apache. That's what the message
in your server error log saying "premature end of script headers" means.
When you run the script from the command line, make sure the VERY FIRST THING
THAT IS OUTPUT is
(Or text/plain, or whatever.)
It must be the very first thing, and it must come out. No blank lines before it,
one blank line after the content-type.
Hamish Moffatt, firstname.lastname@example.org, email@example.com, firstname.lastname@example.org
Latest Debian packages at ftp://ftp.rising.com.au/pub/hamish. PGP#EFA6B9D5
CCs of replies from mailing lists are welcome. http://hamish.home.ml.org
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
Trouble? e-mail to email@example.com .