vultr centos x64 6.5.x 升级php7.0

时间:2022-04-29 09:36:38

升级前,先卸载 php5.6.x

卸载php5.6.2 从cent 6.5.x 

需要卸载:
yum remove php56u-mysqlnd-5.6.20-1.ius.centos6.x86_64 php56u-xml-5.6.20-1.ius.centos6.x86_64 php56u-common-5.6.20-1.ius.centos6.x86_64 php56u-pecl-jsonc-1.3.9-2.ius.centos6.x86_64 php56u-pdo-5.6.20-1.ius.centos6.x86_64 php56u-mysqlnd-5.6.20-1.ius.centos6.x86_64 php56u-fpm-5.6.20-1.ius.centos6.x86_64 php56u-process-5.6.20-1.ius.centos6.x86_64 php56u-gd-5.6.20-1.ius.centos6.x86_64 php56u-cli-5.6.20-1.ius.centos6.x86_64 php56u-mcrypt-5.6.20-1.ius.centos6.x86_64 php56u-mbstring-5.6.20-1.ius.centos6.x86_64

  添加镜像源:

  

  

rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm

  安装命令:

yum install php70w.x86_64 php70w-cli.x86_64 php70w-common.x86_64 php70w-gd.x86_64 php70w-ldap.x86_64 php70w-mbstring.x86_64 php70w-mcrypt.x86_64 php70w-mysql.x86_64 php70w-pdo.x86_64 php70w-fpm

  

当不能访问php网页,显示 502错误的时候,表示php-fpm没有启动

为了重新启动php 构建的项目:

  使用下面命令启动 php-fpm

    $php-fpm

  测试安装效果:

    vultr centos x64 6.5.x  升级php7.0

vultr centos x64 6.5.x  升级php7.0vultr centos x64 6.5.x  升级php7.0

参考文章:http://www.blogjava.net/nkjava/archive/2015/01/20/422289.html