Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Oct 1997 12:19:22 +0700 (JAVT)
From:      V Gatut Harijoso <gatut@student.unpar.ac.id>
To:        "Salah.Abouzgaia" <root@sma.regina.sk.ca>
Cc:        freebsd-isp@FreeBSD.ORG, "Salahddin.Abouzgaia" <abouzgs@sma.regina.sk.ca>
Subject:   Re: Apache_1.2.4 (CGI Execution)
Message-ID:  <Pine.BSF.3.95q.971017120421.27944A-100000@student.unpar.ac.id>
In-Reply-To: <Pine.LNX.3.95.971016201638.992J-100000@neptune>

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




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