From owner-freebsd-isp Mon Oct 20 05:40:35 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id FAA19397 for isp-outgoing; Mon, 20 Oct 1997 05:40:35 -0700 (PDT) (envelope-from owner-freebsd-isp) Received: from bert.club-web.com (bert.club-web.com [207.176.196.11]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id FAA19392 for ; Mon, 20 Oct 1997 05:40:30 -0700 (PDT) (envelope-from mark@club-web.com) Received: from club-web.com (ernie.club-web.com [207.176.196.12]) by bert.club-web.com (8.8.6/8.8.6) with ESMTP id IAA11362; Mon, 20 Oct 1997 08:43:15 -0400 (EDT) Message-ID: <344B51DF.7FA29820@club-web.com> Date: Mon, 20 Oct 1997 08:43:11 -0400 From: Mark Segal Organization: Club-Web Inc. X-Mailer: Mozilla 4.02b7 [en] (X11; I; FreeBSD 2.2.1-RELEASE i386) MIME-Version: 1.0 To: "Salah.Abouzgaia" , freebsd-isp@freebsd.org Subject: Re: Apache_1.2.4 (CGI Execution Problem) References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Salah.Abouzgaia wrote: > > Hi all, > > O.K. let me put it this way: > > httpd.conf: there is no entry for cgi-bin > srm.conf: ScriptAlias /cgi-bin/ /usr/local/etc/httpd/cgi-bin/ > access.conf: > AllowOverride None > Options XBitHack Full (I also tried Options All) > > > The chmod of the scripts in cgi-bin as well the chmod of the html that > uses the cgi script are set to a+x+r (read/execute by all). > I also tested the scripts from the command line without any problems. > > I have no idea why apache looks for cgi-bin in /usr/local/httpd/htdocs. > Even if I create a link to /usr/local/etc/httpd/cgi-bin in > /usr/local/etc/httpd/htdocs and/or create the cgi-bin dir in > /usr/local/etc/httpd/htocs and change the settings in srm.conf > and access.conf to point to this location (Tripp I understand your concern > in terms of security but just for the seek to get it working for now), > apache still does not execute cgi scripts (perl or sh scripts), > instead the browser reads the Perl os sh scripts as text files, and > prints Perl or sh scripts as is on the browser. > Hmm.. ok... It could be one of a few things. Firstly, you might not have finished the tag above (ie the one for htdocs in your access.conf)... but to be honest with you i got rid of the damn line (ScriptAlias) :).. I allow CGI excution from anywhere. Secondly make sure you have the cgi script handler in your srm.conf file. ie. -- part of srm.conf -- AddHandler cgi-script .cgi -- part of srm.conf -- Hope that helps. mark -- Mark Segal mark@club-web.com System Administrator - Club-Web Inc.