LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-11-2006, 06:07 PM   #1
mr_dizzle
Newbie
 
Registered: Oct 2003
Posts: 27

Rep: Reputation: 15
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,
 
Old 12-12-2006, 01:09 AM   #2
jantman
Member
 
Registered: Nov 2005
Location: New Jersey, USA
Distribution: SuSE
Posts: 492

Rep: Reputation: 31
If you look under the docs for each (apache, mysql, php, especially for apache) it will answer most of your questions.

I've upgraded from RPM to source on various machines for various reasons, and usually find that the easiest, most foolproof method is to remove ALL of the related RPMs and install from source. You can try Apache from source with RPMs for PHP and MySQL (you'll definitely need to remove the Apache RPM installation) but you need to install all of the shared libraries, usually in the "dev" or "devel" package.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apache 2.0.54 compile error slackwbas Linux - Software 0 10-12-2005 07:39 AM
I can't get GD to compile in Apache rixride00 Linux - Newbie 1 10-01-2004 01:17 PM
Apache won't compile... kleptophobiac Linux - Software 3 01-23-2004 09:22 PM
Apache 2 and PHP 4.3.3 compile help gquiring Red Hat 1 11-03-2003 07:14 PM
apache compile on RH9 llee Linux - Software 7 05-05-2003 03:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration