Centos 7安装php7报错(error: Failed dependencies: epel-release >= 7 is needed by webtatic-release-7-3.no)

自己亲测报错处理
一.在centos7通过yum安装PHP7
命令:rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
输入以上命令报错:
提示错误:
error: Failed dependencies:
epel-release >= 7 is needed by webtatic-release-7-3.noarch
在这里插入图片描述
1.首先安装epel-release。
命令:yum -y install epel-release
Centos 7安装php7报错(error: Failed dependencies: epel-release >= 7 is needed by webtatic-release-7-3.no)_第1张图片
2.再次安装php7
命令:rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
Centos 7安装php7报错(error: Failed dependencies: epel-release >= 7 is needed by webtatic-release-7-3.no)_第2张图片
3.成功获取PHP7的yum源,然后再执行:
命令:yum install php70w

4.验证安装成功
命令:PHP -v
在这里插入图片描述

你可能感兴趣的:(linux运维,centos,7,linux,服务器)