[DevBox] Upgrade PHP 5.3 to 5.4 on PHP on CentOS 6
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 rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
sudo rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
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/