Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Oct 1996 18:57:46 -0700 (PDT)
From:      Doug White <dwhite@gdi.uoregon.edu>
To:        Nadav Eiron <nadav@barcode.co.il>
Cc:        questions@FreeBSD.ORG
Subject:   Re: Apache won't do CGI
Message-ID:  <Pine.BSI.3.94.961022185636.6076E-100000@gdi.uoregon.edu>
In-Reply-To: <326C7CAF.1CB7@barcode.co.il>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 22 Oct 1996, Nadav Eiron wrote:

> > > I'm running Apache 1.1.1 on two FreeBSD 2.1.5 Release mahines. One works
> > > Just Fine, the other will not run any CGI scripts.
> > > When I attempt to run a CGI script I get:
> > >
> > > /usr/local/apache/cgi-bin/test-cgi: Can't open
> > > /usr/local/apache/cgi-bin/test-cgi
> > > [Sun Oct 20 17:51:18 1996] access to /usr/local/apache/cgi-bin/test-cgi
> > > failed for scully.barcode.co.il, reason: Premature end of script headers
> > 
> > Perhaps there is some problem with your CGI script crashing before it
> > finishes.  Apache picks this up and returns the error.
> 
> The problem seems to be that it is a script (not a binary). If I use a
> binary (i.e. a compiled C program) for the script it runs fine, but
> FreeBSD seems to have trouble with inrterpreted scripts. 

How about the path -- does it point to the script and the interpreter in
question?  Does your script start with

#!/usr/bin/perl 

instead of 

#!perl

?

Doug White                              | University of Oregon  
Internet:  dwhite@resnet.uoregon.edu    | Residence Networking Assistant
http://gladstone.uoregon.edu/~dwhite    | Computer Science Major




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.3.94.961022185636.6076E-100000>