It's probably suexec that is protecting you. If you disable suexec then you can run from anywhere with no probs. Or if you read through suexec's info then you can see how to set scripts properly. suexec requires the owner and group of a script to match certain criteria based on where they are and such. It's a little complicated.

-Josh


On Oct 9, 2003, at 3:46 PM, Joe Dupre wrote:


I am trying to enable CGI scripts to be run from outside the default
(aliased) cgi-bin directory. (That is, I want to run a script from a file
located within a FrontPage web.)


I added "AddHandler cgi-script .cgi" to httpd.conf. This is supposed to
treat any file ending in .cgi as a cgi script.
I have also set the permissions of the script file to 755:
#chmod 755 test-cgi.cgi


But when I try to run the script from a browser Apache returns "Forbidden
You don't have permission to access /test-cgi.cgi on this server."


If I remove the .cgi extension from the script file, the web browser
displays the text of the script, so I know that I do have access to it, I
just don't have access to it when it is a .cgi file. This is the standard
"test-cgi" script that is installed in .../apache/cgi-bin/ and it executes
fine when running from that directory. I just can't get it to run when I
move it to a FrontPage web.


What am I missing here? Are the FrontPage extensions preventing the running
of cgi scripts? Is there some other configuration setting that I have to
do?


Thanks!

- jmd


_______________________________________________ Apache-FP mailing list [EMAIL PROTECTED] http://lists.joshie.com/mailman/listinfo/apache-fp

Donations:
http://www.amazon.com/paypage/PT5LZITM9L227



-- Joshua Levitsky, CISSP, MCSE System Engineer AOL Time Warner [5957 F27C 9C71 E9A7 274A 0447 C9B9 75A4 9B41 D4D1]

_______________________________________________
Apache-FP mailing list
[EMAIL PROTECTED]
http://lists.joshie.com/mailman/listinfo/apache-fp

Donations:
http://www.amazon.com/paypage/PT5LZITM9L227




Reply via email to