From owner-freebsd-questions Sun Dec 9 15:42:27 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mta1x04.coxmail.com (cm-fe1.coxmail.com [206.157.231.20]) by hub.freebsd.org (Postfix) with ESMTP id 79C7D37B417 for ; Sun, 9 Dec 2001 15:42:22 -0800 (PST) Received: from boole.cornpropst.net ([209.249.161.105]) by mta1x04.coxmail.com (InterMail vK.4.03.04.01 201-232-130-101 license c271d808eeaddc9d652e7c0b1383e8cc) with ESMTP id <20011209234533.SFSH339.mta1x04@boole.cornpropst.net>; Sun, 9 Dec 2001 18:45:33 -0500 Received: (from tsc@localhost) by boole.cornpropst.net (8.11.6/8.11.6) id fB9NfoM05260; Sun, 9 Dec 2001 18:41:50 -0500 (EST) (envelope-from tsc) Date: Sun, 9 Dec 2001 18:41:50 -0500 From: "Trevor S. Cornpropst" To: questions@freebsd.org Cc: freebsd@molemanarmy.com Subject: Re: question not asked (sysadmin - Perl?) Message-Id: <20011209184150.72a276c7.tcornpropst@novacoxmail.com> In-Reply-To: <5.1.0.14.0.20011209110026.00a34b40@pop.ulster.net> References: <5.1.0.14.0.20011209100829.00a7bec0@pop.ulster.net> <5.1.0.14.0.20011209100829.00a7bec0@pop.ulster.net> <5.1.0.14.0.20011209110026.00a34b40@pop.ulster.net> X-Mailer: Sylpheed version 0.6.5 (GTK+ 1.2.10; i386--freebsd4.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 09 Dec 2001 11:03:39 -0500 Marty Landman wrote: > At 03:13 PM 12/9/01 +0000, Wayne Pascoe wrote: > >Marty Landman writes: > > > > > I've got the following program > > > > > > #!/usr/local/bin/perl > > > > > > print "Content-type: text/html\n\n"; > > > use Cwd; > > > for($root = cwd()) {print "Root eq $root"} > > > > > > __END__ > > > I just tried this on my web server (apache) and it worked. First confirm your web server is configured correctly to execute cgi scripts by running /cgi-bin/printenv. This script is provided with the Apache installation just for this purpose. If the script runs, you know your cgi handler is configured correctly. Then, I would start looking at file permissions. HTH, Trevor Cornpropst To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message