如何在Cent OS 6.8中更新PHP? [英] How to update PHP in Cent OS 6.8?
问题描述
我尝试使用以下命令将PHP 5.5更新:
I try to update PHP 5.5 to up using command:
sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
检索
https:// dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
警告:/var/tmp/rpm-tmp.4xrPQL:标头V3 RSA / SHA256签名,密钥
ID 352c64e5:NOKEY错误:依赖项失败:epel-release = 6是(已安装)remi-release-6.8-1.el6.remi.noarch
epel-release
= 6 (已安装)ius-release-1.0-14.ius.centos6.noarch
Retrieving https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm warning: /var/tmp/rpm-tmp.4xrPQL: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY error: Failed dependencies: epel-release = 6 is needed by (installed) remi-release-6.8-1.el6.remi.noarch epel-release = 6 is needed by (installed) ius-release-1.0-14.ius.centos6.noarch
该如何解决?
推荐答案
您应该争取CentOS 6而不是7:
You should epel for CentOS 6 not 7:
sudo yum install php-common
sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
sudo rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
sudo yum install php70w php70w-opcache
sudo yum install php70w-fpm php70w-opcache
sudo yum install yum-plugin-replace
sudo yum replace php-common --replace-with=php70w-common
sudo yum install php70w-opcache
# remove old php-cli
sudo yum remove php-cli
sudo rm -rf /usr/bin/php
sudo yum -y install php70w-cli
有关更多信息,请检查此链接
For more informations check this link
这篇关于如何在Cent OS 6.8中更新PHP?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!