簡體   English   中英

無法在 CentOS 7 上安裝 phpMyAdmin

[英]Unable to install phpMyAdmin on CentOS 7

最近我們使用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 安裝而不是不同的存儲庫,在我的情況下remi-php74是正確的

腳步

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

yum-utils提供了yum-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 版。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM