Upgrading PHP 5.2 to PHP 5.3

Is there any easy and safe way to upgrade PHP version from 5.2 to 5.3 with CentOS 5.9 x64? Round Cube 0.9 now requires 5.3 and I would like to use install it just for that for now. I am planning to install a new server with CentOS 6 x64 that hopefully will have PHP 5.3 but that will happen around mid year.



Howdy -- beginning in CentOS 5.6, there has been a new set of PHP 5.3 packages you can use in place of the default PHP packages.

To do that, you first need to look for all the PHP packages that are installed on your system. That can be done with something like this:

rpm -qa | grep '^php'

That will list the PHP packages on your system... it'll show packages such as php, php-common, and php-mysql.

What you'd need to do is remove all those PHP packages, and in their place, install the php53-* packages. For example, php53, php53-common, and php53-mysql.

You can remove packages with a command like this:

yum remove package1 package2 package3

And then to install packages, you can use a command such as this:

yum install package1 package2 package3