Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Ubuntu This forum is for the discussion of Ubuntu Linux.


  Search this Thread
Old 04-11-2007, 11:11 PM   #1
LQ Newbie
Registered: Nov 2006
Posts: 28

Rep: Reputation: 15
Question Help can't get Apache2 with mod_perl to work

I am trying to install apache2 with mod-perl. The installation went well but when I try to run a simple perl test. I get an internal failure statement from the browser.
I installed mod-perl when I installed Ubuntu so I am sure that it is properly configured...I hope.

test file
print "hello world"

I have added .pl to the AddHandler CGI in apache2.conf file.
I have tried adding
</File "~\.pl">
as well to no avail.

Anyone have experience with this problem?

I appreciate any help in this matter.

Because, I have done run out of idea's.
Old 04-12-2007, 04:18 AM   #2
Senior Member
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,507

Rep: Reputation: 128Reputation: 128
there is no header info in your script regarding the contents. if you want to use (this may help as it takes care of CGI aspects)get it from

use CGI qw/:standard/;
use CGI::Carp 'fatalsToBrowser';
print header,start_html;

Last edited by j-ray; 04-12-2007 at 04:20 AM.


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 won't work with anything.. e.v.o Slackware 13 04-15-2007 01:41 AM
apache2 mod_perl unkn0wn Debian 1 07-05-2006 03:08 AM
Help needed with Centos 4.2 Apache2.0.5X mod_perl And AxKit Chaot_s Linux - Software 0 02-10-2006 12:23 PM
Apache2/mod_perl 2.0/Mason problem lowpro2k3 Linux - Software 0 08-08-2005 12:31 PM

All times are GMT -5. The time now is 06:44 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