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?
 
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
 
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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.