*BSD News Article 83837


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!news
From: Ken Bigelow <kbigelow@www.play-hookey.com>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Apache doesn't know about sh script?
Date: Thu, 28 Nov 1996 19:08:30 +0000
Organization: Erol's Internet Services
Lines: 28
Message-ID: <329DE32E.2D42@www.play-hookey.com>
References: <E1IxFo.3EB.G.nanguo@nanguo.chalmers.com.au>
Reply-To: kbigelow@www.play-hookey.com
NNTP-Posting-Host: kenjb05.play-hookey.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.0 (Win16; U)

Robert Chalmers wrote:
> 
> I have a small sh shell script that will run fine under NCSA's httpd, but
> under Apache, it wont run at all. In the cgi-bin dir of course, but
> just no way does Apache want to know about it.
> 
> Any ideas what the prob is?
> 

More likely your configuration than anything else. I'm running
apache_1.1.1 on FreeBSD 2.1R and it has no problem with CGI either in
perl scripts, shell scripts, or precompiled. A couple of things to make
sure of:

Is your top line #! /bin/sh (for shell scripts) or #!
/usr/local/bin/perl (for perl scripts) so that exec() can access them?
Did you mark them world-readable as well as world-executable (chmod
755)?

Did you just load the apache package for FreeBSD, or did you get the
distribution and recompile? Either way, is your configuration set to
allow CGI script execution?
-- 
Ken

Are you interested in   |
byte-sized education    |   http://www.play-hookey.com
over the Internet?      |