LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 04-11-2007, 10:11 PM   #1
rforrister
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
#!/usr/bin/perl
print "hello world"

I have added .pl to the AddHandler CGI in apache2.conf file.
I have tried adding
</File "~\.pl">
etc.
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, 03:18 AM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,432

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

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

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


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


All times are GMT -5. The time now is 03:41 AM.

Main Menu
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