PDA

View Full Version : CGI in all directories



woodmw
11-18-2003, 04:04 PM
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?

teedee
11-18-2003, 11:47 PM
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

l0rdphi1
11-19-2003, 05:33 AM
To make it global readthis (http://www.directadmin.com/forum/showthread.php?s=&threadid=150&highlight=Perl#post4047)

woodmw
11-22-2003, 11:59 AM
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?

DirectAdmin Support
11-22-2003, 01:00 PM
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