From owner-freebsd-questions Sat Feb 1 23:51:39 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id XAA07283 for questions-outgoing; Sat, 1 Feb 1997 23:51:39 -0800 (PST) Received: from rocket.Ngbert.org (ROCKET.RES.CMU.EDU [128.2.92.143]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id XAA07270 for ; Sat, 1 Feb 1997 23:51:36 -0800 (PST) Received: from localhost (ayn@localhost) by rocket.Ngbert.org (8.7.5/8.7.3) with SMTP id CAA06925; Sun, 2 Feb 1997 02:45:40 -0500 (EST) Date: Sun, 2 Feb 1997 02:45:40 -0500 (EST) From: Andrew Y Ng To: Robert Chalmers cc: bsd Subject: Re: apache and cgi's In-Reply-To: <199702020246.MAA00628@nanguo.chalmers.com.au> Message-ID: Organization: Carnegie Mellon University MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk -----BEGIN PGP SIGNED MESSAGE----- u need to enable CGI in access.conf and srm.conf /ayn On Sun, 2 Feb 1997, Robert Chalmers wrote: > Hi, > I'm having trouble getting a shell script (sh) file to run under > FreeBSD's Apache. It worked fine under NSCA though??? > Is it a permissions, or what problem? > > This is the output to the error_log of the program in cgi-bin, that > calls a bunch of other stuff? Perhaps it can no longer do that? > > If I run it form the command line, as user www, it works fine and does > what it should, but called from the html file, it now does this? > > any clues anyone. > Robert > > ------------------the program > #! /bin/sh -x > # > # %W% (Berkeley) %E% > # > cd /usr/games/lib/ching.d > PATH=.:$PATH > case $1 in > [6-9]*) H=$1;shift;; > esac > if test $H > then phx $H | nroff $* macros - | more -s > else cno > "/tmp/#$$" > echo " " > phx `cat "/tmp/#$$"` | nroff $* macros - | more -s > rm "/tmp/#$$" > fi > > ---------------- the output on apache. > + PATH=.:/sbin:/bin:/usr/sbin:/usr/bin > + test > + cno > + echo > [Sun Feb 2 12:39:00 1997] access to /usr/local/etc/httpd/cgi-bin/ching failed for carbon.chalmers.com.au, reason: malformed header from script. Bad header= > + cat /tmp/#595 > + nroff macros - > + more -s > + phx 777697 > + rm /tmp/#595 > -- > chalmers.com.au: P.O. Box 2003. Mackay. 4740 +61-0412-079025 > robert@chalmers.com.au for Whirled Peas http://www.chalmers.com.au > Location: The Great Australian Content Site. 21'7" S, 149'14" E. > -----BEGIN PGP SIGNATURE----- Version: 2.6.2 iQCVAwUBMvRGI56qvWJYgw1hAQERDwQAhvlOpOmBZwoVSUw34WRxN5oNnHF2aLVx lgJrRqXb05fmzCL9a3KhUoUM3S/uH4csMc7s10G+E44YmS9inQtPC0lFoQUEABmo GRV8kaba4ywnGu4m+YkYJKg7sF4g2vZmMfSp5v/+NBryT6UEcnoF8nhaRB3dCdWe jQAcUB2MAiA= =P4xP -----END PGP SIGNATURE----- -- Andrew Y Ng | Carnegie Mellon University http://andrew.Ngbert.org | ECE major // 4-yr BS/MS campus ph: 412/862-2836 | voice mail: 412/268-6700 x30027 | talk: finger ayn@andrew.Ngbert.org * NGBERT.ORG! * | for online status http://www.Ngbert.org | finger ayn@CMU.EDU for more info... --------------------------X------------------------------------- NetBSD NeXT FreeBSD Linux Be Solaris !windoze Marguerite Emmons