LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Ubuntu Apache2 and perl scripts (http://www.linuxquestions.org/questions/linux-server-73/ubuntu-apache2-and-perl-scripts-868035/)

Nemus 03-11-2011 07:10 PM

Ubuntu Apache2 and perl scripts
 
so I have a html file that posts to a .pl script and I am not sure how to setup apache2 to executive the .pl script

the from is a html file which has the action="http://wwww.websitecom/perlscirpt.pl"

the perlscript

start with
#!/usr/bin/perl

when you submit the form apache2 just has you download the .pl file.

Do I need to enable cgi-bin ? what do i need to do to get this to work any help is welcome thank you.

stickman 03-11-2011 11:05 PM

Check the AddHandler directive to see if that will work for you.

Nemus 03-28-2011 12:33 AM

Found Solution
 
I add the following to /etc/apache2/apache2.conf

AddHandler cgi-script .cgi .pl

<Files ~ "\.pl$">
Options +ExecCGI
</Files>
<Files ~ "\.cgi$">
Options +ExecCGI
</Files>


All times are GMT -5. The time now is 05:46 AM.