Upgrade apache/httpd to 2.2.17 in CentOS Linux

by jagbir on March 23, 2011

This is again short post for people lazy enough to not compile and always looking for some quick way to upgrade/install software. ;)

The machine is having CentOS 5.2 and httpd 2.2.8. We are looking to upgrade httpd to 2.2.17 to succeed in PCI compliance. While I assured that current Apache is having all security upgrades but still test guys saying we have to upgrade to latest stable. Ok, its not that difficult.

When I checked, almost all common repositories are having upgrades up to 2.2.8 which I did but I need it to latest stable which is 2.2.17 while writing this article. Then I noticed CentAlt repo which is having this upgrade.

Here are quick steps:

1. create repo file in /etc/yum.repos.d directory:

$ vi /etc/yum.repos.d/centalt.repo
name=CentALT Packages for Enterprise Linux 5 - $basearch

2. Update httpd now:

$ yum update httpd
Dependencies Resolved
 Package                 Arch       Version          Repository        Size 
 apr-util                i386       1.3.9-1.el5      CentALT            93 k
 httpd                   i386       2.2.17-1.el5     CentALT           1.3 M
Installing for dependencies:
 apr-util-ldap           i386       1.3.9-1.el5      CentALT            14 k
 httpd-tools             i386       2.2.17-1.el5     CentALT            69 k
Updating for dependencies:
 apr-util-devel          i386       1.3.9-1.el5      CentALT            69 k
 httpd-devel             i386       2.2.17-1.el5     CentALT           148 k
 httpd-manual            i386       2.2.17-1.el5     CentALT           853 k
 mod_ssl                 i386       1:2.2.17-1.el5   CentALT            87 k
Transaction Summary
Install      2 Package(s)         
Update       6 Package(s)         
Remove       0 Package(s)         
Total download size: 2.6 M
Is this ok [y/N]:

Step 3. Verify and Restart httpd service to make newer Apache in action:

$ httpd -v
Server version: Apache/2.2.17 (Unix)
Server built:   Mar 22 2011 16:56:05
$ service httpd restart

Check your sites,ssl etc. to confirm they are working fine after upgrade.

  • zo0m_

    I, very interesting the article , help me and all result is ok.


  • http://linuxadminzone.com jagbir

    Hey zo0m, thanks for comment. Glad to know it helped you.

  • Ken

    Thanks for the post. I, too, needed to upgrade apache for a different reason, but didn’t want to go outside of yum; honestly, because I have no idea of what sort of internal version control it uses internally and I don’t want to break it.

  • http://linuxadminzone.com jagbir

    Ken, Right. I, myself tried compiling once and screwed up some library, so using yum is kind of first to try and resort to manual if that doesn’t work. thanks for comment.

  • Joe

    There’s a problem. This version of 2.2.17 contains a bug in the “bybusyness” algorithm that fails to reuse a failed balancer member after it recovers. There is a 2.2.17-9 RPM available somewhere that contains the fix per this JIRA ticket: https://issues.jboss.org/browse/JBPAPP-4529 but the CentALT repository hasn’t updated to it.

  • http://linuxadminzone.com jagbir

    Thanks Joe for the comment and info as well.

  • barraba

    httpd-2.2.17-2.el5.x86_64.rpm 02-May-2011 13:02

    i think its fresh one with patch

  • Pingback: New York Snow

  • http://junkiest.us junkiest

    Nice tutorial…. thanks !!!

  • http://everyinformations.com health articles

    great post here, definetely will check back in future
    thanks a lot

  • Jesper

    After following your guide I (still) get this:

    # yum update httpd
    Setting up Update Process
    Setting up repositories
    not using ftp, http[s], or file for repos, skipping – 4 is not a valid release or hasnt been released yet
    http://mirror.centos.org/centos/4/updates/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found
    Trying other mirror.
    Cannot open/read repomd.xml file for repository: update
    failure: repodata/repomd.xml from update: [Errno 256] No more mirrors to try.
    Error: failure: repodata/repomd.xml from update: [Errno 256] No more mirrors to try.

    Any ideas?

    Desperately need to update my Apache webserver

Previous post:

Next post: