无法在CentOS 7上安装phpMyAdmin



最近我们使用yum update -y更新了CentOS 7,并发布了我们面临的几个问题。

现在,即使在尝试安装php56的旧版本之后,它也给出了相同的结果。

尝试在CentOS Linux 7.7.1908版(核心(上安装phpMyAdmin时出错

[root@***** install]# yum install phpmyadmin
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.rackspace.com
* updates: mirror.fileplanet.com
Resolving Dependencies
--> Finished Dependency Resolution
Error: Package: php-pecl-zip-1.18.2-1.el7.remi.5.6.x86_64 (remi-php56)
Requires: php(api) = 20131106-64
Installed: php-common-7.4.4~RC1-1.el7.remi.x86_64 (@remi-modular-test)
php(api) = 20190902-64
Available: php-common-5.6.40-18.el7.remi.x86_64 (remi-php56)
php(api) = 20131106-64
Available: php-common-5.6.40-19.el7.remi.x86_64 (remi-php56)
php(api) = 20131106-64
Error: Package: php-pecl-zip-1.18.2-1.el7.remi.5.6.x86_64 (remi-php56)
Requires: php(zend-abi) = 20131226-64

为此确定了一个合适的工作解决方案,感谢Techmint

由于我安装了php7.4.4RC1,所以下级包应该从同一个repo而不是不同的repo安装,在我的情况下remi-hp74是正确的

步骤

yum install yum-utils
yum-config-manager --enable remi-php74
yum install php-zip -y
yum install phpMyAdmin -y

yum-utilsyum-config-manager轻松配置php74的默认remi存储库

Installed: php-common-7.4.4~RC1-1.el7.remi.x86_64 (@remi-modular-test)

为什么要安装此软件包?

为了正确安装,请按照向导说明

顺便说一句,最新的phpMyAdmin版本(5.0.2(至少需要PHP 7.1版本。