CGI in all directories

woodmw

New member
Joined
Nov 18, 2003
Messages
4
Location
Texas
I have users that would like to execute cgi scripts from any directory, or from other directories other than cgi-bin.

I tried to make the change in /etc/httpd/conf/httpd.conf to show:

<Directory />
Options FollowSymLinks ExecCGI
AllowOverride All
</Directory>

This did not seem to di the trick.

Anyone shed some light for me?
 
Just add a .htaccess file in the directory you want to run the scripts from with the following lines

Options +ExecCGI
AddHandler cgi-script cgi pl
 
Global cgi execution

I found documentation on the apache website and placed the ExecDGI option in to the httpd.conf file, and seemed to have worked, but now I am having a problem running cgi's even within the cgi-bin directory...

Any ideas, also is there a way to allow cgi access to a globally writable file or directory?
 
Hello,

I think your two questions answer themselves. When you make files/directories 777, suexec considers this to be insecure and will not run.

You can find out why a script isn't running by checking the suexc_log:

/var/log/httpd/suexec_log

John
 
Back
Top