DarkHorizons
09-12-2002, 09:10 PM
Hi,
I want to be able to run .cgi or .pl scripts from a folder othan then my cgi-bin folder.
How do I do this?
Thanks
Shyne
09-12-2002, 09:35 PM
Put the files in a different folder you want it to run from.
DarkHorizons
09-12-2002, 10:36 PM
no - this doesn't work.
When the file whatever.cgi is in the cgi-bin folder it will get exectued when accessing through http://whatever.com/cgi-bin/whatever.cgi
however is whatever.cgi is in the whatever.com/whatever folder then accessing it through the browser actually shows the contents of the file (in this case perl code) rather then executing the file.
yes - it has execute permissions.
The server needs to have global CGI execution configured.
DarkHorizons
09-13-2002, 12:02 AM
:stickout
LOL - that's like saying "The bag full of money is right over............ahh i'll tell you next wee"
so how do you do that?
bitserve
09-14-2002, 11:21 AM
If using apache, make sure you have "ExecCGI" directive for the "folder other than the cgi-bin folder". Or you could just have "AllowOveride" and drop an .htaccess file into that "folder" with "ExecCGI" enabled.
If you're using suexec, make sure that the "other folder" has the correct permissions.
Post what's currently in your httpd.conf file (if you're using apache) for more information.