Re: CGI Error
Unfortunately that is the first thing... it runs on other systems, so I'm
clueless.. It wasn't able to run from the server cgi-bin, so I don't
think it is suEXEC's problem, but Apache's.
On Mon, 8 Dec 1997, Hamish Moffatt wrote:
> 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
> Content-type: text/html
> <blank line>
> <web page>
> (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
> email@example.com .
> Trouble? e-mail to firstname.lastname@example.org .
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
Trouble? e-mail to email@example.com .