Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Compiling Apache, mod_perl and others

Posted on 2002-06-06
5
Medium Priority
?
231 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

705 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