Re: CGI Error
On Sun, 7 Dec 1997, Paul Miller wrote:
: 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.
Are you sure that you have a <ScriptAlias> directive set up for your
cgi-bin directory? I've seen a few people that have moved their cgi dir
and can't figure it out after that.
If you have the proper <ScriptAlias> directive, check your <Directory>
directives. These are found in srm.conf and access.conf respectively,
if you have a stock Debian Apache install.
I myself put all Apache directives into httpd.conf, as recommended in
the Laurie book on Apache. Makes it less likely that you'll overlook
BTW, www.apache.org is invaluable when you're examining your
Finally, i don't use suEXEC, so I can't say one way or the other whether
that's you're problem. I do know that if Apache is your problem that
it's very likely it's setup improperly.
: 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
: > --
: > Hamish Moffatt, email@example.com, firstname.lastname@example.org, email@example.com
: > 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
: > firstname.lastname@example.org .
: > Trouble? e-mail to email@example.com .
: TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
: firstname.lastname@example.org .
: Trouble? e-mail to email@example.com .
MidcoNet - 410 South Phillips Avenue - Sioux Falls, SD 57104
phone: (605) 334-4454 fax: (605) 335-1173
PGP Key ID: 0xA33B86E9 - Public key available at keyservers
PGP Key fingerprint: CE03 10AF 3281 1858 9D32 C2AB 936D C472
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
Trouble? e-mail to firstname.lastname@example.org .