LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   hey apache problem!! help needed (http://www.linuxquestions.org/questions/linux-general-1/hey-apache-problem-help-needed-728518/)

raksiyer1 05-26-2009 02: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 03: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:
Code:

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


All times are GMT -5. The time now is 06:25 PM.