Solved

Compiling Apache, mod_perl and others

Posted on 2002-06-06
5
224 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

Don't miss ATEN at NAB Show April 24-27!

Visit ATEN at NAB Show to learn how our "Seamlessly Entertaining" solutions deliver fast, precise video streaming without delays for the broadcasting and media environment. ATEN will showcase its 16x16 Modular Matrix Switch (VM1600) and KVM Over IP Solution (KE6900 series).

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.

726 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