LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-08-2003, 08:10 PM   #1
joshf
LQ Newbie
 
Registered: Jul 2003
Posts: 21

Rep: Reputation: 15
mod_perl with RedHat9


I installed Perl 5.8.0 successfully. Now I am trying to install mod_perl so that Apache 2.0.40 can use Perl.

I install like this:

perl Makefile.PL MP_APXS=/usr/sbin/apxs MP_INST_APACHE2=1

make

make install

This should add entries to httpd.conf, but it does not. Therefore, I don't think it is installing like it should. I am using RedHat9, so Apache2 is installed in /usr/sbin instead of the "standard" place.

I was successful with PHP and the proper entries were automatically added to httpd.conf.

Please help me with mod_Perl.
 
Old 07-08-2003, 10:18 PM   #2
joshf
LQ Newbie
 
Registered: Jul 2003
Posts: 21

Original Poster
Rep: Reputation: 15
I am testing this with a "Hello World" .pl script and I get the actual perl code. I have used a pre-compiled rpm and I have compiled it myself. They both seem to install okay, but nothing appears in the httpd.conf file.

Any help would be greatly appreciated.
 
Old 07-08-2003, 10:39 PM   #3
jerry_redhat
LQ Newbie
 
Registered: Jul 2003
Location: Australia
Distribution: RedHat 8.0
Posts: 10

Rep: Reputation: 0
you need apxs2 for apache2 for this to install correctly

(unless ur using apxs2 and it is in a dir called apxs for sum reason)

Last edited by jerry_redhat; 07-08-2003 at 10:42 PM.
 
Old 07-08-2003, 10:45 PM   #4
joshf
LQ Newbie
 
Registered: Jul 2003
Posts: 21

Original Poster
Rep: Reputation: 15
check my first post above.

Apache 2.0.40

I install like this:
cd mod_perl-1.99
perl Makefile.PL MP_APXS=/usr/sbin/apxs MP_INST_APACHE2=1
make
make install
 
Old 07-08-2003, 10:48 PM   #5
joshf
LQ Newbie
 
Registered: Jul 2003
Posts: 21

Original Poster
Rep: Reputation: 15
This was installed with RedHat9. How should I get apxs2?
 
Old 07-08-2003, 10:58 PM   #6
jerry_redhat
LQ Newbie
 
Registered: Jul 2003
Location: Australia
Distribution: RedHat 8.0
Posts: 10

Rep: Reputation: 0
use

perl Makefile.PL USE_APXS=1 WITH_APXS=/path/to/apache2/bin/apxs2 EVERYTHING=1

if that doesn't work i'm out of ideas sorry
 
Old 07-08-2003, 10:58 PM   #7
joshf
LQ Newbie
 
Registered: Jul 2003
Posts: 21

Original Poster
Rep: Reputation: 15
My server never had less than version 2.0.40 of Apache, so surely /usr/sbin/apxs is the correct program.
 
Old 07-08-2003, 10:59 PM   #8
joshf
LQ Newbie
 
Registered: Jul 2003
Posts: 21

Original Poster
Rep: Reputation: 15
Should I have to manually enter anything into httpd.conf?
 
Old 07-09-2003, 11:59 AM   #9
joshf
LQ Newbie
 
Registered: Jul 2003
Posts: 21

Original Poster
Rep: Reputation: 15
I ran "make test" and checked the log. I have two errors:

syntax error at /usr/local/tmp/mod_perl-1.99_09/t/response/TestError/syntax.pm line 22


File does not exist: /usr/local/tmp/mod_perl-1.99_09/t/htdocs/input_filter.html


Can anyone tell me how to fix this?
 
  


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
mod_perl on SuSe pmedes Linux - Software 0 12-28-2004 08:33 AM
testing mod_perl pmedes SUSE / openSUSE 0 12-28-2004 07:58 AM
Apache and mod_perl TheCreator Linux - Software 0 12-21-2003 01:18 PM
mod_perl? ziggie216 Linux - Software 0 12-15-2003 06:17 PM
mod_perl trouble perlguy Programming 1 07-19-2002 01:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:51 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration