Link to home
Start Free TrialLog in
Avatar of luser9999
luser9999

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of Pieter Jordaan
Pieter Jordaan
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Always follow the REAME and INSTALL document to install. It comes with the source. I always follow that rule only.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of luser9999
luser9999

ASKER

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
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks.
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
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
will try and check again later,thanks