CentOS 7通过yum安装PHP7.1

分类:PHP, 发布于 2017-01-22  浏览(1500)

CentOS 7/6下安装PHP7.1的步骤:

CentOS 7:

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

CentOS 6:

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm

安装PHP及相关包:

yum install mod_php71w php71w-opcache php71w-mysql php71w-gd php71w-mbstring

更多包在 https://webtatic.com/packages/php71/