LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices



Reply
 
Search this Thread
Old 07-20-2011, 05:41 PM   #1
2kau
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>
ServerAdmin webmaster@domain.com
ServerName domain.org
ServerAlias www.domain.org
DocumentRoot /home/vhosts/domain.org/httpdocs
ErrorLog /var/log/apache2/domain.org-error_log
CustomLog /var/log/apache2/domain.org-access_log combined
HostnameLookups Off
UseCanonicalName Off
ServerSignature On
ScriptAlias /cgi-bin/ "/home/vhosts/domain.org/httpdocs/"
AddHandler cgi-script .cgi .pl

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

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

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

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
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?
Code:
LoadModule cgi_module ....


Cheers,
Tink
 
  


Reply


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


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

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