centos 6.7 安装php7

前端之家收集整理的这篇文章主要介绍了centos 6.7 安装php7前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

默认的版本太低了,手动安装有一些麻烦,想采用Yum安装的可以使用下面的方案:

1.检查当前安装的PHP

yumlistinstalled|grepPHP

如果有安装的PHP包,先删除他们

yumremovePHP.x86_64PHP-cli.x86_64PHP-common.x86_64PHP-gd.x86_64PHP-ldap.x86_64PHP-mbstring.x86_64PHP-mcrypt.x86_64PHP-MysqL.x86_64PHP-pdo.x86_64


CentOs6.x
rpm-Uvhhttp://mirror.webtatic.com/yum/el6/latest.rpm

yum install PHP70w.x86_64 PHP70w-cli.x86_64 PHP70w-common.x86_64 PHPw-gd.x86_64 PHP70w-ldap.x86_64 PHP70w-mbstring.x86_64 PHP70w-mcrypt.x86_64 PHP70w-MysqL.x86_64 PHP70w-pdo.x86_64
4.安装PHP FPM

yum install PHP55w-fpm
yum install PHP56w-fpm
yum install PHP70w-fpm


yum install PHP70w-devel

yum install gcc-c++

yum install gcc

yum installlibtool

原文链接:https://www.f2er.com/centos/378265.html

猜你在找的CentOS相关文章