How can a user run a .cgi script outside the cgi-bin?
How can a user run a .cgi script outside the cgi-bin?
Hi;
If you wish to run the cgi script outside the cgi-bin folder and it doesn't seem to work, first get in touch with the Technical Support Team of your web host and let them know about your needs.
Then, ask permission if you're allowed to add the following two lines to your .htaccess file:
Options +ExecCGI
AddHandler cgi-script .cgi .pl
Those two lines tell your webserver to treat files ending in .cgi or .pl to execute (run as scripts). This assumes you've chmoded those files as 755.
JaguarPC
jaguarpc.com