CentOS6 php5.4 upgrade php5.6 本篇適用於同樣從php5.3-> php5.4的方式

在CentOS 6下(包含安裝EPEL)

wget https://dl.fedoraproject.org/pub/epel/ ... el-release-6-8.noarch.rpm
wget https://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm

如果您原本就已經裝過EPEL則執行下面指令:

wget https://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6*.rpm

 

把他改成1 

[remi-php56]
name=Les RPM de remi de PHP 5.6 pour Enterprise Linux 6 - $basearch
#baseurl=https://rpms.famillecollet.com/enterprise/6/php56/$basearch/
mirrorlist=https://rpms.famillecollet.com/enterprise/6/php56/mirror
# WARNING: If you enable this repository, you must also enable "remi"
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi

 

then  yum install php56

done

 

 

← 回列表