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 [CentALT] name=CentALT Packages for Enterprise Linux 5 - $basearch baseurl=http://centos.alt.ru/repository/centos/5/$basearch/ enabled=1 gpgcheck=0
2. Update httpd now:
$ yum update httpd ... ... ... Dependencies Resolved ============================================================================= Package Arch Version Repository Size ============================================================================= Updating: 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.