Physical Address

304 North Cardinal St.
Dorchester Center, MA 02124

Upgrade PHP to 5.4 – CentOS 6.5

I recently had to upgrade PHP on an old server, here is how I did it.

Please note: This will remove all your PHP components and any custom settings you may have done, you’ll have to repeat all that you did to setup your server to run your PHP applications.

Add atomic’s repo

wget -q -O - |sh

Simply issuing the upgrade command did not work for me, had a couple of conflicts from other repos, so the only option left was to completely remove PHP and re-install it.

yum remove php-*

Now install PHP

yum install php

Throw a phpinfo file to confirm PHP has in fact updated

php 5.4 centos 6.5 upgrade install remove