我试图更新我的PHP,但是当我使用yum update php时,这就是我得到的:
Error: Package: gd-last-2.2.4-1.el6.remi.x86_64 (remi)
Requires: libwebp.so.5()(64bit)
Error: Package: php-mysql-5.4.45-13.el6.remi.x86_64 (remi)
Requires: php-pdo(x86-64) = 5.4.45-13.el6.remi
Removing: php-pdo-5.4.16-42.el7.x86_64 (@base)
php-pdo(x86-64) = 5.4.16-42.el7
Updated By: php-pdo-5.6.30-1.el6.remi.x86_64 (remi-php56)
php-pdo(x86-64) = 5.6.30-1.el6.remi
Available: php-pdo-5.4.45-13.el6.remi.x86_64 (remi)
php-pdo(x86-64) = 5.4.45-13.el6.remi
Available: php-pdo-5.6.29-1.el6.remi.x86_64 (remi-php56)
php-pdo(x86-64) = 5.6.29-1.el6.remi
Error: Package: php-5.6.30-1.el6.remi.x86_64 (remi-php56)
Requires: httpd-mmn = 20051115
Installed: httpd-2.4.6-40.el7.centos.4.x86_64 (@updates)
httpd-mmn = 20120211
httpd-mmn = 20120211x8664
httpd-mmn = 20120211-x86-64
Available: httpd-2.4.6-45.el7.centos.x86_64 (base)
httpd-mmn = 20120211x8664
httpd-mmn = 20120211-x86-64
httpd-mmn = 20120211
Available: httpd-2.4.6-45.el7.centos.4.x86_64 (updates)
httpd-mmn = 20120211x8664
httpd-mmn = 20120211-x86-64
httpd-mmn = 20120211
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
我尝试使用--skip-broken,然后重新启动,但我的版本没有帮助。我搜索了这个网站并遇到了一个我遵循的帖子(Can't install PHP Package on CentOS)。
基本上这就是我先输入的内容:
yum install epel-release
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
yum clean
yum update
得到了与之前完全相同的错误(所以我猜它没有做任何事)。然后我这样做了:
yum update -y; yum remove httpd && yum install httpd; yum install php56w-common php56w-opcache php56w-mysql
这是我得到的错误(所以我虽然部分问题已经解决):
Error: Package: gd-last-2.2.4-1.el6.remi.x86_64 (remi)
Requires: libwebp.so.5()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
但为了以防万一,我访问了我的网站,现在得到502错误:( :( - 我甚至无法连接到Sentora(我已经安装)。当我尝试重新安装sentora(所以也许它' ll修复它,它说它需要一个干净的服务器,因为已经安装了mariadb !! 请帮帮我!!
问候
答案 0 :(得分:0)
错误:包:php-5.6.30-1.el6.remi.x86_64(remi-php56) 要求:httpd-mmn = 20051115 安装:httpd-2.4.6-40.el7.centos.4.x86_64(@updates)
您显然配置错误,在CentOS 7服务器上混合CentOS 6的存储库。
因此,删除安装不当的软件包:
yum remove remi-release epel-release webtatic-release
yum clean all
然后,请参阅configuration wizard并为remi和epel存储库安装正确的配置包。
答案 1 :(得分:0)
您可以检查/etc/yum.conf文件,看看是否从更新中排除了httpd和/或httpd *包。如果是这样,请修改yum.conf exclude行并删除httpd * packages,运行“yum clean all'”,然后尝试再次更新PHP。
答案 2 :(得分:0)
您更新了epel
,但没有清理。
您可以使用以下命令来安装php5.6:
yum clean all
yum install php56w