Install latest apache from source

Hi Guys,

I'm trying to install latest apache (2.2.x) and PHP 5.X on Red hat linux ES 4 (up9) server (we need this for other purpose). I downloaded binaries from apache site and extracted issued following command,
./configure --prefix=/usr/local/apache
make
make install
I do not find any modules in /usr/local/apache/modules directory (where as if you install through rpm you will find all modules here) how about getting all modules, so files since we need like mod_proxy, mod_rewrite, mod_jk etc

Can somebody help on this or provide a command which will install all modules and shared objects just like when you install rpm based httpd.

thanks
luser9999Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Pieter JordaanSenior Systems Administrator - Web hosting and Network Security.Commented:
Hi

I prefer to use FreeBSD because it loves source code.
It is important to use the source code modified to work on your OS.

Do you have the option to "make config" ?
Do you get more options if you run ./configure without the --prefix part?

There should be a menu somewhere, where you can select the modules.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Pieter JordaanSenior Systems Administrator - Web hosting and Network Security.Commented:
You may have to specify the modules separately:

look here:
http://httpd.apache.org/docs/2.2/programs/configure.html
0
upanwarCommented:
Always follow the REAME and INSTALL document to install. It comes with the source. I always follow that rule only.
0
IT Pros Agree: AI and Machine Learning Key

We’d all like to think our company’s data is well protected, but when you ask IT professionals they admit the data probably is not as safe as it could be.

jar3817Commented:
You'll have to download and compile them (in the case of JK and PHP and MySQL since that isn't bundled with PHP anymore) and include them in the apache configure script.

I haven't done this in years because it sucks and you can just install via rpm on redhat/fedora/centos. It's probably 10000 times easier to just do it via rpm.
0
luser9999Author Commented:
Hi jar3817,

I understand the pain of compiling from source. I did find a way to get all modules and now I was able to start apache fine. can anyone suggest or locate source tarball for mysql server so I can do the same way and compile it, because the php5 needs a mysql .so / header files.

I am on dev.mysql site but could not find one to compile it. can some one help me?

thanks
0
jar3817Commented:
http://www.mysql.com/downloads/mysql/

There is a platform drop down box, at the bottom of it "source code" is listed there.
0
luser9999Author Commented:
Thanks.
0
luser9999Author Commented:
I was able to install apache and php & mysql and all looks to be working good. Apache was accessible to everyone now.

But I do not find few modules are loaded into apache and would like to install them after apache is up and running. Please suggest how to compile them - should i recompile with --with-module? If it is yes, is this good idea to do recompile once the apache is up and running.
the missing modules are,
mod_ldap.so
mod_authnz_ldap.so

thanks
0
jar3817Commented:
Did you enabled shared modules in your config command? What was the exact configure command you used? I'm pretty sure doing --with-module will compile them statically with no corresponding .so file.
0
luser9999Author Commented:
I was unable to figure out the exact command I used, but I believe this is it


./configure --prefix=/home/local/apache2 --enable-so --enable-proxy --enable-ssl  --enable-rewrite --enable-mods-shared=most

yes, enabled shared modules -- the reason because we have compile dynamically mod_security module using apxs..

thanks
0
Pieter JordaanSenior Systems Administrator - Web hosting and Network Security.Commented:
Hi

It is easiest to just 'make deinstall', then make it again with the new options.
0
luser9999Author Commented:
will try and check again later,thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.