Solved

Compiling Apache, mod_perl and others

Posted on 2002-06-06
5
220 Views
Last Modified: 2010-03-04
Trying to compile Apache, and it's driving me nutz.  I can either compile Apache with all my modules EXCEPT mod_perl, or I can have mod_perl.  Anyone know what I am going wrong here?

./configure \
--prefix=/path/to/apache/v1.3.24 \
--enable-module=rewrite \
--enable-shared=rewrite \
--enable-module=proxy \
--enable-shared=proxy \
--activate-module=src/modules/perl/libperl.a \
--enable-shared=perl \
--enable-suexec \
--suexec-caller=apache \
--suexec-userdir=docs \
--suexec-uidmin=10000 \
--suexec-gidmin=10000

According to the docs --activate-module=src/modules/perl/libperl.a should get mod_perl loaded, but its not showing up when I do an httpd -l.  If I do a "perl Makefile.pl" in mod_perl it builds Apache, I run make, but it doesnt install my other modules!
0
Comment
Question by:thetool721
  • 3
  • 2
5 Comments
 
LVL 15

Expert Comment

by:samri
ID: 7058775
What is your OS Platform?

I used to have that problem before.  Decided to forget mod_perl, and download a precompile binaries (RPM) that has mod_perl built-in.

http://perl.apache.org/distributions.html
0
 
LVL 1

Author Comment

by:thetool721
ID: 7059477
Doh, forgot to include the important information

OS: RedHat Linux 7.1

I finally got it compiled, but I had to manually compile mod_perl.so in the perl source using apxs.  Every other method they offered didn't seem to give me what I needed!
0
 
LVL 15

Accepted Solution

by:
samri earned 100 total points
ID: 7060900
It's great to hear that you finally got it tackled.

At this point, you can get you pts refunded by placing a "0" pts qts in community Support topic area.

However, the solution is valid, and should be good for future reference.

I bet the EE Moderator should be able to assist.

cheers.
0
 
LVL 1

Author Comment

by:thetool721
ID: 7062445
My final solution was as follows:

Configured/Compiled Apache v1.3.24 using the following command

/configure \
--prefix=/path/to/apache/v1.3.24 \
--enable-module=rewrite \
--enable-shared=rewrite \
--enable-module=proxy \
--enable-shared=proxy \
--enable-suexec \
--suexec-caller=apache \
--suexec-userdir=docs \
--suexec-uidmin=10000 \
--suexec-gidmin=10000

make
make install

By compiling Apache and enabling mod_rewrite and mod_proxy as shared, it enabled DSO on my Apache installation.  If you don't need these, you'll have to tell APache to enable it.  Since I am compiling mod_perl as a DSO, this is required.

Then went to mod_perl src directory, into APACI directory and ran:

./configure \
--with-apxs=/path/to/apache/v1.3.24/bin/apxs

make
make install

That was it.  Make sure the SO file is in libexec and you should be ready to go.
0
 
LVL 1

Author Comment

by:thetool721
ID: 7062450
samri,

I am going to accept one of your comments as answers.  This way the knowledge stays in the system without having to pull any crazy stunts ;-)

Thanks for the assistance!
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now