Aug 8, 2012

Installing Latest version of PHP on CentOS

Recently I have been trying to install the latest version of PHP in my CentOS. But before I do that, I need to install EPEL yum repository on my CentOS.

EPEL for i386
http://ftp.riken.jp/Linux/fedora/epel/5/i386/epel-release-5-4.noarch.rpm

EPEL for x86_64
http://ftp.riken.jp/Linux/fedora/epel/5/x86_64/epel-release-5-4.noarch.rpm

If you have any version of PHP installed then you need to remove it using
yum remove php php-*

Now lets install Latest PHP
yum install php53 php53-*

After completing the installation, lets check the version of PHP installed:
php -v

No comments:

Post a Comment