Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Compiling Apache, mod_perl and others

Posted on 2002-06-06
5
Medium Priority
?
239 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 400 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

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

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

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
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 …
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses
Course of the Month9 days, 19 hours left to enroll

926 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