Alibaba linux 3安装LAMP(5)

Remi 的 php-process 包不能被 DNF 正确识别, DNF 只看 Alinux3 的 PHP 7.4 包。因此安装phpmyadmin要绕过 DNF 依赖检查,强制安装。

https://rpms.remirepo.net/enterprise/8/remi/x86_64/

1. 下载

cd /tmp

wget https://rpms.remirepo.net/enterprise/8/remi/x86_64/php-process-8.1.34-1.el8.remi.x86_64.rpm

wget https://rpms.remirepo.net/enterprise/8/remi/x86_64/php-mbstring-8.1.34-1.el8.remi.x86_64.rpm

wget https://rpms.remirepo.net/enterprise/8/remi/x86_64/php-zip-8.1.34-1.el8.remi.x86_64.rpm wget https://rpms.remirepo.net/enterprise/8/remi/x86_64/php-sqlite3-8.1.34-.el8.remi.x86_64.rpm

wget https://rpms.remirepo.net/enterprise/8/remi/x86_64/php-curl-8.1.34-1.el8.remi.x86_64.rpm

wget https://rpms.remirepo.net/enterprise/8/remi/noarch/phpMyAdmin-5.2.3-.el8.remi.noarch.rpm

php -m | grep posix #确认 php-posix 已可用

2. 强制安装

cd /tmp/phpmyadmin-install # 进入你下载 phpMyAdmin 的目录

sudo rpm -ivh --nodeps phpMyAdmin-5.2.2-1.el8.remi.noarch.rpm # 强制安装,不检查依赖

3. 配置Apache

sudo sed -i 's/Require local/Require all granted/' /etc/httpd/conf.d/phpMyAdmin.conf

sudo systemctl restart httpd

相关推荐
可涵不会debug8 分钟前
C++ std::bind 实战教程:线程池、回调场景全覆盖
linux·开发语言·c++
实点科技23 分钟前
远程IO模块的柜外安装:装在什么位置、防尘罩怎么选配
运维·服务器·网络
云计算-Security27 分钟前
AI 赋能运维:UniRack 主机纳管平台的架构与实践
运维·人工智能·架构
云絮.33 分钟前
Spring MVC(二)
服务器·spring·mvc
青梅味猪大肠1 小时前
【操作系统-26】进程互斥软件实现-Peterson算法
linux·运维·服务器
分布式存储与RustFS1 小时前
在 Kubernetes 里跑对象存储的三个方案:Helm、Operator、以及什么时候别用 K8s
运维·云原生·开源·对象存储·分布式存储·s3·性能基准
怪力左手1 小时前
docker+qemu创建镜像
运维·docker·容器
wdfk_prog1 小时前
Wi-Fi Direct教程 01:在 Ubuntu 搭建双 mac80211_hwsim + wpa_supplicant 2.12
linux·运维·服务器·ubuntu·ros·wifi-direct
fengkai45452 小时前
十一、MySQL 第 1‑3 章
运维·数据库·mysql
wusam2 小时前
计算机网络第二章习题解答
服务器·网络·计算机网络