這是爲我工作的最簡單的方法:要在CentOS 6或7的安裝PHP 5.6:
的CentOS 6中顯示的順序輸入以下命令:
yum -y update
yum -y install epel-release
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
wget https://centos6.iuscommunity.org/ius-release.rpm
rpm -Uvh ius-release*.rpm
yum -y update
yum -y install php56u php56u-opcache php56u-xml php56u-mcrypt php56u-gd php56u-devel php56u-mysql php56u-intl php56u-mbstring php56u-bcmath
CentOS 7.按所示順序輸入以下命令:
yum -y update
yum -y install epel-release
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
wget https://centos7.iuscommunity.org/ius-release.rpm
rpm -Uvh ius-release*.rpm
yum -y update
yum -y install php56u php56u-opcache php56u-xml php56u-mcrypt php56u-gd php56u-devel php56u-mysql php56u-intl php56u-mbstring php56u-bcmath
查看如何升級到PHP 7以及更多: http://devdocs.magento.com/guides/v2.0/install-gde/prereq/php-centos.html
沒有爲CentOS 6工作 – realplay
@realplay什麼是錯誤信息? –