There were a number of requests on how to install newer versions of PHP on our PHP DevBox stack (CentOS 6) recently.
We will release a new set of stacks next week, but until then here's how to upgrade it yourself in a few easy steps.
After creating a DevBox with a PHP Stack, you will get a an instance running Centos 6.5. with the availability to use Yum package manager.
Go to the terminal tab and run these commands:
sudo yum --enablerepo=remi,remi-test install httpd php php-common
sudo yum --enablerepo=remi,remi-test install php-pecl-apc php-cli php-pear php-pdo php-mysql php-pgsql php-pecl-mongo php-sqlite php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml
After this, it’s done!
You could simply create a php file and run phpinfo() to check the version.
For furthur assistance feel free to contact our Codeanywhere Support Team.
We kindly thank Francis Suarez who originaly wrote this article on his blog: http://codex73.com/upgrade-php-5-3-to-5-4-on-centos-6/