Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 03-11-2011, 07:10 PM   #1
Registered: Apr 2007
Distribution: Fedora/Ubuntu
Posts: 63

Rep: Reputation: 15
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.
Old 03-11-2011, 11:05 PM   #2
Senior Member
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Check the AddHandler directive to see if that will work for you.
Old 03-28-2011, 12:33 AM   #3
Registered: Apr 2007
Distribution: Fedora/Ubuntu
Posts: 63

Original Poster
Rep: Reputation: 15
Found Solution

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

AddHandler cgi-script .cgi .pl

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


apache2, perl

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
setting up cgi scripts on apache2 jabberwok Linux - Server 18 07-14-2009 12:07 AM
LXer: How to Install Apache2 webserver with PHP,CGI and Perl Support in Ubuntu Server LXer Syndicated Linux News 0 10-17-2008 06:10 PM
Apache2 on Debian won't execute perl cgi scripts, have tried chmod, Options ExecCGI dewert Linux - Software 1 07-03-2006 12:44 PM
perl files download instead of parsed on apache2 mod-perl2 not parsing perl files zeigerpuppy Debian 1 02-16-2006 05:31 AM
My Apache2 fails to parse php-scripts in html pages 3-1415 Linux - Software 6 10-21-2004 05:59 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:18 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration