You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

无法通过Putty在AlmaLinux 8.7上安装phpMyAdmin:找不到安装包

解决方案

解决phpMyAdmin安装包缺失问题

  1. 安装yum工具包以管理仓库:
    yum install -y yum-utils
    
  2. 启用remi仓库中对应PHP版本的子仓库(以PHP 7.2为例,其他版本替换为remi-php73/remi-php74等):
    yum-config-manager --enable remi-php72
    
  3. 清理并重建yum缓存:
    yum clean all && yum makecache
    
  4. 重新执行安装命令:
    yum install phpMyAdmin
    

解决php72w-fpm/php72w-opcache安装包缺失问题

php72w-*系列包来自webtatic仓库,而非你已配置的EPEL/remi仓库,提供两种方案:

方案1:使用remi仓库的PHP包(推荐)

remi仓库中PHP 7.2对应的包命名为php-fpm和php-opcache,直接安装:

yum install php-fpm php-opcache

方案2:添加webtatic仓库

针对CentOS/RHEL 7系统,执行以下命令安装webtatic仓库:

rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

安装完成后即可安装目标包:

yum install php72w-fpm php72w-opcache

排查步骤

若问题仍存在,先确认所需仓库已启用:

yum repolist enabled

检查输出中是否包含remi-php72、epel、remi(或webtatic)仓库。

内容的提问来源于stack exchange,提问作者Finn Solly

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.10 22:40:24