Knowledgebase: Dedicated Servers
How do I run CGI script outside of the cgi-bin?
Posted by John Imison on 06 December 2007 02:39 PM
If you wish to run cgi scripts outside of the cgi-bin directory adding the following lines to a .htaccess file should enable the script to run:|
AddHandler cgi-script cgi
Make sure that the permissions on the script allow it to be read and executed. If using suexec ensure that the user and group of the file are set correctly.