Tôi gặp sự cố khi cài đặt lại PHP qua yum trên máy chủ của tôi được lưu trữ bởi đại dương kỹ thuật số.Không thể cài đặt Gói PHP trên CentOS
Tôi đã cài đặt PHP 5.4 nhưng muốn 5.6. Tôi đã thêm/kích hoạt repi remi, chạy yum -y remove php*
và sau đó cố gắng cài đặt lại php.
Khi tôi chạy yum -y install php
tôi nhận được như sau:
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.centos.webair.com
* epel: mirrors.coreix.net
* extras: mirrors.centos.webair.com
* remi: remi.check-update.co.uk
* remi-php56: remi.check-update.co.uk
* updates: mirrors.centos.webair.com
* webtatic: uk.repo.webtatic.com
Resolving Dependencies
--> Running transaction check
---> Package php.x86_64 0:5.6.8-1.el6.remi will be installed
--> Processing Dependency: php-common(x86-64) = 5.6.8-1.el6.remi for package: php-5.6.8-1.el6.remi.x86_64
--> Processing Dependency: php-cli(x86-64) = 5.6.8-1.el6.remi for package: php-5.6.8-1.el6.remi.x86_64
--> Processing Dependency: httpd-mmn = 20051115 for package: php-5.6.8-1.el6.remi.x86_64
--> Running transaction check
---> Package php.x86_64 0:5.6.8-1.el6.remi will be installed
--> Processing Dependency: httpd-mmn = 20051115 for package: php-5.6.8-1.el6.remi.x86_64
---> Package php-cli.x86_64 0:5.6.8-1.el6.remi will be installed
---> Package php-common.x86_64 0:5.6.8-1.el6.remi will be installed
--> Processing Dependency: php-pecl-zip(x86-64) for package: php-common-5.6.8-1.el6.remi.x86_64
--> Processing Dependency: php-pecl-jsonc(x86-64) for package: php-common-5.6.8-1.el6.remi.x86_64
--> Running transaction check
---> Package php.x86_64 0:5.6.8-1.el6.remi will be installed
--> Processing Dependency: httpd-mmn = 20051115 for package: php-5.6.8-1.el6.remi.x86_64
---> Package php-pecl-jsonc.x86_64 0:1.3.7-1.el6.remi.5.6 will be installed
---> Package php-pecl-zip.x86_64 0:1.12.5-1.el6.remi.5.6 will be installed
--> Finished Dependency Resolution
Error: Package: php-5.6.8-1.el6.remi.x86_64 (remi-php56)
Requires: httpd-mmn = 20051115
Installed: httpd-2.4.6-31.el7.centos.x86_64 (@base)
httpd-mmn = 20120211
httpd-mmn = 20120211x8664
httpd-mmn = 20120211-x86-64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Tôi đã theo this tutorial
tôi là một chút khó khăn. Tôi đã thử gỡ bỏ httpd, cài đặt lại httpd, không có gì có vẻ để sửa lỗi này. Tôi thậm chí có được lỗi khi tôi vô hiệu hóa remi và thử và cài đặt PHP 5.4.
Mọi ý tưởng về nơi cần đi từ đây?
Tôi đang chạy CentOS Linux phát hành 1503/07/01 (Core)
'sudo yum sạch tất cả' dường như là chìa khóa trong trường hợp của tôi –