-   Linux - Server (
-   -   Ubuntu Apache2 and perl scripts (

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/"

the perlscript

start with

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 ~ "\.cgi$">
Options +ExecCGI

All times are GMT -5. The time now is 04:46 PM.