Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Feb 1997 02:45:40 -0500 (EST)
From:      Andrew Y Ng <ayn@rocket.Ngbert.org>
To:        Robert Chalmers <robert@nanguo.chalmers.com.au>
Cc:        bsd <freebsd-questions@FreeBSD.ORG>
Subject:   Re: apache and cgi's
Message-ID:  <Pine.BSI.3.95.970202024517.6897A-100000@rocket.Ngbert.org>
In-Reply-To: <199702020246.MAA00628@nanguo.chalmers.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
-----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 <ayn@CMU.EDU> | 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




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