From owner-freebsd-isp Thu Oct 16 21:50:42 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id VAA19329 for isp-outgoing; Thu, 16 Oct 1997 21:50:42 -0700 (PDT) (envelope-from owner-freebsd-isp) Received: from student.unpar.ac.id ([167.205.206.58]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id VAA19319 for ; Thu, 16 Oct 1997 21:50:26 -0700 (PDT) (envelope-from gatut@student.unpar.ac.id) Received: from localhost (gatut@localhost) by student.unpar.ac.id (8.8.5/8.8.5.D) with SMTP id MAA28042; Fri, 17 Oct 1997 12:19:22 +0700 (JAVT) Date: Fri, 17 Oct 1997 12:19:22 +0700 (JAVT) From: V Gatut Harijoso To: "Salah.Abouzgaia" cc: freebsd-isp@FreeBSD.ORG, "Salahddin.Abouzgaia" Subject: Re: Apache_1.2.4 (CGI Execution) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Thu, 16 Oct 1997, Salah.Abouzgaia wrote: > Hi all, > Two problems: > Problem 1: in spite that I set the ScriptAliase to point to > /usr/local/etc/htdoc/cgi-bin, Apache always think that cgi-bin is in > /usr/local/etc/htdoc/htdocs and as a result cgi files are not found. > I double check all the config files, and there is nowhere that > points cgi-bin dir to /usr/local/etc/httpd/htdocs. Make sure you wrote correctly. === ScriptAlias /cgi-bin/ /usr/local/etc/htdoc/cgi-bin/ === Which you use 'htdocs' or 'htdoc'? Be carefull, must end with slash (/). > Problem 2: even if make cgi-bin in /usr/local/etc/httpd/htdoc and change > settings in all the config files to point to this dir, apache 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. How about file mode? httpd-user must be able to run the script (eg. mode -r-xr-xr-x, or -rwx--x--x). Can you run the files manually as web-user? > ScriptAliases is set correctly I am not sure. :) > Options ExecCGI is set in the access.conf No need to place ExecCGI for 'ScriptAlias' directory.