centos7的php5.x升级到7.x

  1. rpm -qa | grep php| xargs rpm -e
  2. yum reinstall -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
  3. yum reinstall -y https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
  4. yum list | grep php
  5. yum -y install php72w php72w-fpm php72w-mbstring php72w-common php72w-gd php72w-mysql php72w-xml php72w-cli php72w-devel php72w-pecl-memcached php72w-pecl-redis php72w-opcache php72w-ldap php72w-bcmath php72w-xmlrpc
  6. php -v
  7. systemctl restart httpd
  8. cd /etc/httpd/conf.d/ 查看有没有php.conf文件
上一篇:mac 编译php 7.2+扩展编译 的坑史(不是swoole的坑),php的一个坑,这个坑还没填满,问题根源还没有找到 !


下一篇:centos7 php7利用pecl安装扩展