时间:2021-07-01 10:21:17 帮助过:14人阅读
1.检查当前安装的PHP包
yum list installed | grep php
如果有安装的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
CentOs 6.x
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
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 install libtool php -dvld.active=1 test.php
相关文章:
Mac默认使用自己安装的php
详细介绍Linux下安装php环境并且配置Nginx支持php-fpm模块(图文)
详细介绍CentOS7编译安装PHP7的示例代码(图)
以上就是centos6.7安装php7的详细介绍的详细内容,更多请关注Gxl网其它相关文章!