Tuesday 19 June 2012

How to install PHP 5.4.x on CentOS 6.x

Here are a few commands to execute for installing PHP 5.4.x on CentOS 6.x.

1. Install REMI Repository
# rpm --import http://rpms.famillecollet.com/RPM-GPG-KEY-remi
# rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

2. Execute yum install with remi-test enabled
# yum install php --enablerepo=remi-test

Check whether you're ok with the dependencies and proceed the installation.
Done. Just that simple 3 steps.

Note. You might want to disable remi-test after installation
# yum update --disablerepo=remi-test

No comments:

Post a Comment