Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-20-2011, 05:41 PM   #1
LQ Newbie
Registered: Mar 2006
Posts: 5

Rep: Reputation: 0
CGI Files Download and Won't Execute

I cannot get Perl files to execute. They just download. I set permissions right and here is my CONF file:

<VirtualHost *:80>
DocumentRoot /home/vhosts/
ErrorLog /var/log/apache2/
CustomLog /var/log/apache2/ combined
HostnameLookups Off
UseCanonicalName Off
ServerSignature On
ScriptAlias /cgi-bin/ "/home/vhosts/"
AddHandler cgi-script .cgi .pl

<Directory "/home/vhosts/">
AllowOverride All
Options +ExecCGI
Order allow,deny
Allow from all
Options Indexes FollowSymLinks

<IfModule mod_userdir.c>
UserDir public_html
Include /etc/apache2/mod_userdir.conf

Old 07-20-2011, 07:01 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911
Firstly it's a bad (really BAD) idea to mix cgi & html locations.
Perl/cgi is not like PHP in that respect.

Secondly: do you actually have the relevant module loaded/enabled?
LoadModule cgi_module ....



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
Apache2 cgi-bin perl - My browser just wants to download the .pl files keenboy Linux - Server 4 05-19-2010 10:42 AM
wget - download cgi files estratos Linux - Software 7 02-06-2009 07:36 AM
Apache2 on Debian won't execute perl cgi scripts, have tried chmod, Options ExecCGI dewert Linux - Software 1 07-03-2006 01:44 PM
Apache2 cannot execute cgi files on a USB drive bhoult Linux - Software 2 07-11-2005 11:19 AM
HELP!!! my konqueror won't download files! whitetigah Linux - Newbie 3 03-11-2004 04:37 PM > Forums > Linux Forums > Linux - Newbie

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

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