您的位置:首页 > 编程语言 > PHP开发

C7部署PHP7.3.6yum方式

2019-06-28 16:53 1431 查看

1.检查安装环境删除5.4.16版本的php

rpm -qa|grep php
php-pdo-5.4.16-46.el7.x86_64
php-cli-5.4.16-46.el7.x86_64
php-ldap-5.4.16-46.el7.x86_64
php-mbstring-5.4.16-46.el7.x86_64
php-5.4.16-46.el7.x86_64
php-xml-5.4.16-46.el7.x86_64
php-mysql-5.4.16-46.el7.x86_64
php-common-5.4.16-46.el7.x86_64
php-fpm-5.4.16-46.el7.x86_64
php-bcmath-5.4.16-46.el7.x86_64
php-gd-5.4.16-46.el7.x86_64
yum remove php*5.4.16* -y
rpm -qa|grep php

2.安装扩展yum源以及remi资源包

yum install epel-release -y
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
yum repolist|grep remi
remi-safe                                Safe Remi's RPM repository for Enterprise Linux 7 - x86_64

3.安装php-httpd等模块

yum --enablerepo=remi-php73 install \
php-xml php-soap php-xmlrpc php-mbstring \
php-json php-gd php-mcrypt

测试一下应该有php模块了

httpd -M|grep php
php7_module (shared)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: