Centos 部署php5.6
Centos 部署php5.6
第一步:卸载自带php
1
|
yum remove php.x86_64 php-cli.x86_64 php-common.x86_64 php-gd.x86_64 php-ldap.x86_64 php-mbstring.x86_64 php-mcrypt.x86_64 php-mysql.x86_64 php-pdo.x86_64 -y |
第二步:下载安装源
1
2
3
|
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 rpm -Uvh http: //rpms .famillecollet.com /enterprise/remi-release-7 .rpm |
第三步:安装php5.6
1
|
yum install -y php56w php56w-opcache php56w-xml php56w-mcrypt php56w-gd php56w-devel php56w-mysql php56w-intl php56w-mbstring |
第四步:验证
1
|
php - v |