When you want to use yum to use php5.4, you should let yum know the repos. Now I give one way for you to install php5.4 on your centos 5 or centos 6.
1. On centos 6
//on 64 computer
rpm -Uvh http://ftp.riken.jp/Linux/fedora/epel//6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh http://dl.iuscommunity.org/pub/ius/stable/Redhat/6/x86_64/ius-release-1.0-10.ius.el6.noarch.rpm
// on 86 computer
rpm -Uvh http://ftp.riken.jp/Linux/fedora/epel//6/i386/epel-release-6-8.noarch.rpm
rpm -Uvh http://dl.iuscommunity.org/pub/ius/stable/Redhat/6/i386/ius-release-1.0-10.ius.el6.noarch.rpm
// if the file does not exist, please go to http://ftp.riken.jp/Linux/fedora/epel//6/ to find the suitable version for epel-release-6-XXX.noarch.rpm
2. On centos 5
//on 64 computer
rpm -Uvh http://ftp.riken.jp/Linux/fedora/epel//5/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/ius-release-1.0-10.ius.el5.noarch.rpm
// on 86 computer
rpm -Uvh http://ftp.riken.jp/Linux/fedora/epel//5/i386/epel-release-6-8.noarch.rpm
rpm -Uvh http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/i386/ius-release-1.0-10.ius.el5.noarch.rpm
// if the file does not exist, please go to http://ftp.riken.jp/Linux/fedora/epel//5/ to find the suitable version for epel-release-5-XXX.noarch.rpm
Last please use
yum install php54
No comments:
Post a Comment