Share your knowledge at the LQ Wiki.
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 08-22-2004, 11:46 AM   #1
Registered: Aug 2004
Posts: 47

Rep: Reputation: 15
how do i install mod perl with apache2

Just to give the background:
I have installed php,apache and mysql via instructions on this page which I consequantly think is the most clear and consise tutorial I have seen thus far. Anyway I want to install mod_perl as well as the latter apps with apache, I have spent some considerable time reading docs from the perl site and alike however there are some things im am unclear about , for instance the instructions from which says not to install perl without the pre-requisites and states the following :

"The mod_perl 2.0 prerequisites are:


=item * Apache

Apache 2.0 is required. mod_perl 2.0 B<does not> work with Apache 1.3.

L<Dynamic|/MP_USE_DSO> (DSO) mod_perl build requires Apache 2.0.47 or
higher. L<Static|/MP_USE_STATIC> build requires Apache 2.0.51 or

=item * Perl


=item prefork MPM"

can someone be so kind as to decipher what this means?

Also something I misunderstand which is key to the install is from this site and it basically states that to install mod_perl from source I do

tar -xvzf mod_perl-2.x.xx.tar.gz
% cd modperl-2.0
% perl Makefile.PL MP_APXS=$HOME/httpd/prefork/bin/apxs MP_INST_APACHE2=1

The bit I dont understand is MP_APXS=$HOME/httpd/prefork/bin/apxs, I see this term mentioned quite alot but dont understand where they get the prefork directory from, I dont have such I directory, also $HOME is this a normal users home directory? The thing is even as root I have no directory tree as above, I do have a apxs file but that is in /usr/local/apache2/bin

Any help would be greatly appreciated as Im stuck with this until I can find some decent instructions

Old 08-22-2004, 11:58 AM   #2
Registered: Aug 2004
Posts: 47

Original Poster
Rep: Reputation: 15
Also if I do perl Makefile.PL MP_APXS=/usr/local/apache2/bin/apxs MP_INST_APACHE2=1 then

I do make && make test then a few of the tests fail

if I then do make install it says half way through waiting for server to heat up............................. and times out after about 120 seconds and then make install continues and the perl module gets installed in /usr/local/apache2/modules.

The next thing I did was tried to run a perl script via apache e.g http://localhost/ but the perl script gets printed in the browser rather than executed.

Finally I read some things about putting stuff in /usr/local/apache2/conf/httpd.conf I followed instructions on which stated to do:

Enable mod_perl built as DSO, by adding to httpd.conf:

LoadModule perl_module modules/

Next, tell Perl where to find mod_perl2 libraries:

PerlModule Apache2

I also looked at the perl docs in the src directory which stated

LoadModule perl_module modules/
PerlModule Apache2
#PerlModule Apache::compat
# your config comes here

I assume the above is to go in httpd.conf? Its just none of the docs Ive seen mention this also does it matter which part of the conf file they go in? if this is the case

Any help greatly appreciated

Old 08-22-2004, 12:00 PM   #3
Registered: Aug 2004
Posts: 47

Original Poster
Rep: Reputation: 15
One final thing my mod perl install is most likely screwed owing to not finding some quality docs , does anyone no how I can completely uninstall it?

My system is

amd 64 3200
linux fedora 2

Thanks again

Last edited by unixmad; 08-22-2004 at 12:09 PM.


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 + mod-ssl keeps loading the default localhost.xxxxxx cert STEBEL Linux - Newbie 3 11-26-2005 07:49 AM
GdkPixbuf mod install for Gtk-Perl-0.7009 for Acidrip and dvd::rip dns21 Linux - Software 5 09-28-2005 08:37 PM
whereis apache2-mod-php barrythai SUSE / openSUSE 0 08-30-2005 01:59 PM
apr-mod apache2 Skaan Debian 2 05-27-2005 04:29 AM
Need help compiling mod perl with apache2 unixmad Linux - Software 0 08-25-2004 06:34 AM > Forums > Linux Forums > Linux - Newbie

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

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
Open Source Consulting | Domain Registration