-   Linux - General (
-   -   hey apache problem!! help needed (

raksiyer1 05-26-2009 03:23 AM

hey apache problem!! help needed
i am trying to execute a script which is in /opt/dir from

scripts that are in cgi-bin.I am getting error of permission denied even

though i hav given 777 permissions to all these directories.

But wen i copied the script from /opt/dir its running.

But i cant copy all scripts in /opt/dir to cgi-bin n run them.

So,wat should i do?

bathory 05-26-2009 04:15 AM

You can use ScriptAlias to define an alias for /opt/dir. For example, if you want apache to run scripts from /opt/dir, whet it encounters /cgi-bin/scriptname.cgi, the use:

ScriptAlias /cgi-bin/ "/opt/dir/"

All times are GMT -5. The time now is 11:34 PM.