rjimmink
10-01-2001, 12:08 PM
Hi,
I'm trying to get some CGIs to work that need to read/write to files in the current directory. That means they can't be installed in /cgi-bin as that is a 'magic' directory treating all files as executable scripts.
So I am now trying to install in a sub-dir of the html-root. I have used .htaccess with the follwoing lines:
Options +ExecCGI
AddHandler cgi-script cgi
AddHandler cgi-script pl
And that seems to work fine for scripts with the extension .cgi and .pl
But how do I add a handler for scripts that do not have an extension in their name? e.g. script_name (as opposed to script_name.cgi or script_name.pl)
Also, I found out that the directory holding the scripts should have the permissions set to 755. In an attempt to get it to work I set this to 777, but then scripts refuse to be executed (even in /cgi-bin). (not to say that using 777 is not wise at all, but when desparate...)
Any ideas welcome!
Ronald
I'm trying to get some CGIs to work that need to read/write to files in the current directory. That means they can't be installed in /cgi-bin as that is a 'magic' directory treating all files as executable scripts.
So I am now trying to install in a sub-dir of the html-root. I have used .htaccess with the follwoing lines:
Options +ExecCGI
AddHandler cgi-script cgi
AddHandler cgi-script pl
And that seems to work fine for scripts with the extension .cgi and .pl
But how do I add a handler for scripts that do not have an extension in their name? e.g. script_name (as opposed to script_name.cgi or script_name.pl)
Also, I found out that the directory holding the scripts should have the permissions set to 755. In an attempt to get it to work I set this to 777, but then scripts refuse to be executed (even in /cgi-bin). (not to say that using 777 is not wise at all, but when desparate...)
Any ideas welcome!
Ronald