How to yum install Apache HTTP Server (httpd) 2.4?

Issues related to applications and software problems

How to yum install Apache HTTP Server (httpd) 2.4?

Postby Zane » 2012/02/23 16:32:20

Hi all,
currently, my server is using the "standard" httpd 2.2.15 provided by the official repo.

Since Apache HTTP Server (httpd) 2.4 is out, is there a way to upgrade to it using yum?

Thanks!
Zane
 
Posts: 29
Joined: 2009/09/14 08:37:48
Location: Ferrara, Italy

Re: How to yum install Apache HTTP Server (httpd) 2.4?

Postby TrevorH » 2012/02/23 16:52:58

No.

Such is the nature of an Enterprise distribution, the idea is that you get thoroughly tested packages and not the bleeding edge. If you want bleeding edge packages then CentOS is not the right distribution for you and Fedora is --> over there!

Redhat backport security fixes and selected enhancements from the mainline of each package to their own version but the version of all packages stays (mostly) fixed for the 10 year lifetime of the CentOS version you are running.
User avatar
TrevorH
Forum Moderator
 
Posts: 9082
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: How to yum install Apache HTTP Server (httpd) 2.4?

Postby minfrin » 2012/02/24 11:46:07

I did some work getting apr v1.4.x, apr-util v1.4.x and httpd v2.4.x to work out the box on Redhat/CentOS/Fedora, in an effort to ensure httpd v2.4 was as easy to deploy as possible.

The catch is you have to build the RPMs yourself, however this involves "yum install"-ing some dependencies, and then running rpmbuild as described here, so it's not too complex:

http://httpd.apache.org/docs/2.4/platform/rpm.html

Make sure you follow these instructions for apr and apr-util as well, so that at least v1.4 is available of both.
minfrin
 
Posts: 1
Joined: 2012/02/24 11:35:21

Re: How to yum install Apache HTTP Server (httpd) 2.4?

Postby adam704a » 2012/05/12 14:33:46

Hello,

"The catch is you have to build the RPMs yourself, however this involves "yum install"-ing some dependencies, and then running rpmbuild"


After going down this path myself, I am left with the following unresolved dependencies.

rpmbuild -tb httpd-2.4.2.tar.bz2
error: Failed build dependencies:
apr-devel >= 1.4.0 is needed by httpd-204002001:2.4.2-1.x86_64
apr-util-devel >= 1.4.0 is needed by httpd-204002001:2.4.2-1.x86_64
distcache-devel is needed by httpd-204002001:2.4.2-1.x86_64

I can't find these anywhere for CentOS.

Any ideas?
adam704a
 
Posts: 2
Joined: 2012/05/12 04:35:30

Re: How to yum install Apache HTTP Server (httpd) 2.4?

Postby adam704a » 2012/05/12 16:16:27

Update: I managed to get all of these dependencies resolved. Now I am left with an RPM Build error:

RPM build errors:
Installed (but unpackaged) file(s) found:
/usr/share/man/man8/fcgistarter.8.gz


Any thoughts?

(I am running this on CentOS 6.2)
adam704a
 
Posts: 2
Joined: 2012/05/12 04:35:30

How to yum install Apache HTTP Server (httpd) 2.4?

Postby pschaff » 2012/05/12 17:56:58

Welcome to the CentOS fora. Please see the recommended reading for new users linked in my signature.

After reading those links you should realize why you should not hijack threads as you have done.

Please read FAQ#20. Where can I get the latest version of XyZ.rpm for CentOS? I cannot find it anywhere.

You have apparently already replaced some core packages with updated versions. If still determined to proceed then start a new Topic for your issue to get the attention you need, providing a link to this one if required for context. This thread is now locked.
pschaff
Retired Moderator
 
Posts: 18277
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America


Return to CentOS 6 - Software Support

Who is online

Users browsing this forum: Yahoo [Bot] and 7 guests