Top Nav

Upgrade PHP on Server with IUS Repository

It’s easy to upgrade between PHP version is you’re using the IUS repository:

Start by determining which version and modules you have already installed:

So in this case we have the “php52” packages.

Next decide which package set you want to upgrade to. Right no in IUS the choices are:

  1. php52
  2. php53u
  3. php54

IUS provides a great extension for yum which allows for replacing packages:

Now you can replace the PHP version with something like this:

Just change php52 and php53 to the original and new version that you want to replace.

After the install completes run “yum list | grep php | grep installed” again and make sure that you have all the extensions that you need.