Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 03-17-2012, 06:48 AM   #1
Registered: Oct 2006
Posts: 295

Rep: Reputation: 31
How to compile Apache 2 on CentOS


I use CentOS 5.5 32bits.

Can any tell me how to compile and install Apache2 from source? Is there any doc which details required packages to install?

I've tried but always find errors running make.


Last edited by Felipe; 03-17-2012 at 12:49 PM. Reason: error release
Old 03-17-2012, 10:30 AM   #2
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,476

Rep: Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480

You can take a look here for a howto.
To compile software from sources in Centos, you need to install the Development Tools
yum groupinstall 'Development Tools'
Apart from that, as you can see in the previous link, the only extra packages you might need is openssl-devel and zlib-devel, if you choose to add ssl and mod_deflate support in apache.

Old 03-17-2012, 01:09 PM   #3
Registered: Oct 2006
Posts: 295

Original Poster
Rep: Reputation: 31
Now it works.

After adding

./configure ... --with-included-apr
it has worked.
I already have the centos httpd package installed. Adding that parameter, it has compiled and installed fine.

Thanks for the help

Last edited by Felipe; 03-17-2012 at 01:10 PM.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
optimize apache 2 in centos 5 sokha Linux - Server 4 03-30-2010 11:25 PM
mod_auth_winbind for apache in centos. chandramani_yadav Linux - Server 0 08-17-2009 08:51 AM
Apache Error 403 - CentOS 5.2 with Apache 2.2.3 gordymann Linux - Newbie 2 04-08-2009 08:57 AM
Centos 5 Apache error swhitehead Linux - Newbie 2 04-09-2008 01:10 PM
comple performance problem... help me with suse alaios SUSE / openSUSE 7 02-01-2006 02:26 AM

All times are GMT -5. The time now is 03:31 PM.

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