LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Executing perl scripts in apache (https://www.linuxquestions.org/questions/linux-server-73/executing-perl-scripts-in-apache-488867/)

kladizkov 10-02-2006 07:24 PM

Executing perl scripts in apache
 
In my server, I have to put perl scripts in three folders public_html/perl, public_html/admin, public_html/admin/perl. And the perl script in these directories should be executed by apache irrespective of it's file extension.

I added ScriptAlias line in virtual host in httpd.conf. But its not solved the problem. There is some more that has to be added. I think its <location> </location> tag. What all things should i add in httpd.conf.

Please help.

bathory 10-04-2006 04:00 AM

For each one of these directories you should use a .htaccess containing:
Code:

Options +ExecCGI
SetHandler cgi-script

And of course you must least have
Code:

AllowOverride Options
in your httpd.conf either globally or per directory.

kobbee 10-04-2006 07:35 AM

how to I access pages from a remote client?
 
I have apache server running on a linux machine fedora core 5 but i'm not able to access the pages on a remote client. it only works for the local system

how do i solve this?:scratch: :scratch:


All times are GMT -5. The time now is 09:12 PM.