第一步:卸载自带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

  

 

相关文章:

  • 2021-12-12
  • 2021-10-14
  • 2021-12-13
  • 2021-09-15
  • 2021-09-28
猜你喜欢
  • 2021-12-11
  • 2022-02-02
  • 2021-08-02
  • 2022-12-23
  • 2021-10-02
  • 2021-04-06
  • 2022-02-20
相关资源
相似解决方案