How to Update Apache to 2.2.27 with RPM on CentOS 6 x64

By | May 26, 2014

As you might already know, most recent version of Apache is 2.4.9 (for today). If you want to upgrade to it, you should perform too many changes in your server software, since it has references to many other packages. If you need a stable server – you should upgrade it to legacy 2.2.27 version.

You can download source files from Apache Web site, and compile them. However if you prefer using RPMs, there is a solution.

If you prefer to do this with yum, you should add an alternative repository for this package, since the official one doesn’t contain the updated version. In order to do this, you should create a new file with repo configuration:

vi /etc/yum.repos.d/centalt.repo

This file should be filled with the following:

name=CentALT Packages for Enterprise Linux 6 - $basearch

After that you should run yum update httpd and your Apache installation will be upgraded and all the dependencies will be solved.

Sometimes this repository is not available, so it does not provide any files. I have uploaded files you need to my server so you can download them and install all rpms manually.

Here is the list of files:


And here are the links:

And the command to install them:

rpm -Uvh distcache-1.4.5-23.x86_64.rpm –nodeps;
rpm -Uvh httpd-2.2.27-1.el6.x86_64.rpm –nodeps;
rpm -Uvh httpd-devel-2.2.27-1.el6.x86_64.rpm –nodeps;
rpm -Uvh httpd-tools-2.2.27-1.el6.x86_64.rpm –nodeps;
rpm -Uvh mod_ssl-2.2.27-1.el6.x86_64.rpm –nodeps;

You should add –nodeps option as you will be getting warning messages, that some files are write protected.

Then restart Apache with service httpd restart and enjoy your updated installation! :)


Leave a Reply

Your email address will not be published. Required fields are marked *