PHP 5.5.13 on CentOS 6.5 with yum

I’ve got problems with installing PHP 5.5.13 (last stable build) on a CentOS 6.5 (64 bit) machine, through yum.

It is not a part of the CentOS, EPEL or REMI repos as far as I can see. I get 5.4.29 with either of those repositories.


Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

With distros such as RHEL and CentOS, they typically have a 7-10 year lifetime, it’s difficult to keep them up to date with the latest versions of things. Your only options are to:

  1. go without it
  2. build it from source yourself
  3. use a 3rd party repository that provides alternative packages

I typically go with #3. You can use this repo to install 5.5:

To install the repo:

$ sudo rpm -Uvh

To install the packages:
$ sudo yum install php55w php55w-opcache

This is one of many 3rd party repos that provide packages in this manner. Always make sure that you’re OK with using these repos, prior to just jumping in and using them. Some are better than others, but I’ve never run into an issue with using their builds of packages.

Using remi repo

This repo does provide the 5.5 packages of PHP, you just need to know how to tell it that that’s what you want.

Setting up repo, if not already

$ sudo wget
$ sudo wget
$ sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm

This will upgrade PHP from 5.3.3 to PHP 5.4.24 (15. January 2014).
$ sudo yum --enablerepo=remi update -y

If you want the newest PHP, version 5.5.x you must run the following command:
$ sudo yum --enablerepo=remi,remi-php55 update -y


Method 2

You don’t need 3rd party repos, there is SCL:

The wiki is old, it currently supports php 5.6.
After installing SCL, do a “yum search rh-php56” and you will see all php 5.6 related packages.

The catch is that all SCL packages are not installed on the usual directories so they can co-exist with other versions. They install under /opt using in a chroot-like tree. It may be what you want or not.

Method 3

You won’t typically find the latest releases of software in a distro’s package manager. Unless a package has critical security patches, the version that is available via the package manager was the must current version when the release went into a testing freeze.

Freeze – During the freeze period, development of the Testing
distribution is blocked; no more automatic updates are allowed. Only
the Release Managers are then authorized to change packages, according
to their own criteria. The purpose is to prevent the appearance of new
bugs by introducing new versions; only thoroughly examined updates are
authorized when they correct significant bugs.

You’ll have to either build php from source, create you own rpm/repo or find a third party that has already built an rpm and is making it available

All methods was sourced from or, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Notify of
Inline Feedbacks
View all comments