#1  
Old 12th December 2006, 01:20
mr_dizzle mr_dizzle is offline
Junior Member
 
Join Date: Jul 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default compile apache

I'm currently running CentOS 4.4 with Apache/2.0.52 installed via up2date/rpm.

I'm having some trouble getting apr working correctly, so I was going to build apache from source using the following notes:

wget http://www.apache.org/dist/httpd/httpd-2.0.59.tar.bz2

tar -xjf httpd-2.0.59.tar.bz2

rm -rf httpd-2.0.59.tar.bz2

cd httpd-2.0.59

./configure --prefix=/usr/local/httpd-2.0.59 --enable-mods-shared=all --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr

make

make install

cd /usr/local

ln -s httpd-2.0.59 apache2

My questions are.....

How will it know to use this version of apache rather than than rpm version currently installed? Do I have to remove those apache rpm's?

Will I have have to recompile php and mysql to get them to work with the apache source build since they were installed via rpm as well?

Do my ./configure flags look ok?

Is there a specific order I should build? apache, then php?

Thanks,
Reply With Quote
Sponsored Links
  #2  
Old 13th December 2006, 06:46
drks drks is offline
Junior Member
 
Join Date: Aug 2006
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

A better way to do this would be to rebuild the httpd (Apache) RPM with the new source...

up2date --get-source httpd
rpm -Uvh /var/spool/up2date/httpd-<version>.src.rpm
wget http://www.apache.org/dist/httpd/httpd-2.0.59.tar.bz2
mv httpd-2.0.59.tar.bz2 /usr/src/redhat/SOURCES
cd /usr/src/redhat/SPECS
vi httpd.spec (modify the Version/Release lines)
rpmbuild -ba httpd.spec


Once built you can upgrade httpd

rpm -Uvh /usr/src/redhat/RPMS/i386/httpd*.rpm --test
rpm -Uvh /usr/src/redhat/RPMS/i386/httpd*.rpm


That would be the recommended way to go about it.... installing software from source on an RPM distro is just dirty.... and should be avoided when possible.
__________________
drks - http://www.5dollarwhitebox.org
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 15:47
Loadbalanced Apache Cluster Help brianwebb01 Installation/Configuration 2 18th October 2006 17:01
mod_mono apache 2.2 ColdDoT Server Operation 5 23rd May 2006 02:58
Problem with the installation of Dokeos (LMS) in ISPConfig jofranco General 4 28th April 2006 00:45
Apache 1.3 Support SleeperZ General 3 9th November 2005 11:10


All times are GMT +2. The time now is 12:57.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.