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:

[CentALT]
name=CentALT Packages for Enterprise Linux 6 - $basearch
baseurl=http://centos.alt.ru/repository/centos/6/$basearch/
enabled=1
gpgcheck=0

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:

distcache-1.4.5-23.x86_64.rpm
httpd-2.2.27-1.el6.x86_64.rpm
httpd-devel-2.2.27-1.el6.x86_64.rpm
httpd-tools-2.2.27-1.el6.x86_64.rpm
mod_ssl-2.2.27-1.el6.x86_64.rpm

And here are the links:

http://lampdocs.com/centos6/distcache-1.4.5-23.x86_64.rpm
http://lampdocs.com/centos6/httpd-2.2.27-1.el6.x86_64.rpm
http://lampdocs.com/centos6/httpd-devel-2.2.27-1.el6.x86_64.rpm
http://lampdocs.com/centos6/httpd-tools-2.2.27-1.el6.x86_64.rpm
http://lampdocs.com/centos6/mod_ssl-2.2.27-1.el6.x86_64.rpm

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 *