Centos 部署php5.6

第一步:卸载自带php

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

  

第二步:下载安装源

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

yum install -y php56w php56w-opcache php56w-xml php56w-mcrypt php56w-gd php56w-devel php56w-mysql php56w-intl php56w-mbstring

 

第四步:验证

php -v

  

 

posted @ 2020-09-24 12:49  RoyFans  阅读(128)  评论(0编辑  收藏