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

相关推荐
哇哈哈&2 小时前
安装wxWidgets3.2.0(编译高版本erlang的时候用,不如用rpm包),而且还需要高版本的gcc++19以上,已基本舍弃
linux·数据库·python
weixin_307779133 小时前
Jenkins中的Jakarta Activation API插件:功能、使用与最佳实践
运维·开发语言·ci/cd·自动化·jenkins
Macbethad4 小时前
工业触摸屏技术指南:选型、难点与实战解决方案
服务器·前端·数据库
minihuabei4 小时前
跨域拉镜像
linux
王 富贵5 小时前
【Linux】防火墙常用命令(iptables/firewalld/ufw)
linux·运维·服务器
一条咸鱼¥¥¥5 小时前
【运维经济】思科交换机和路由器的密码重置方法
运维·网络·智能路由器
写代码的【黑咖啡】5 小时前
Linux系统简介及常用命令分类详解
linux·运维·服务器
❀͜͡傀儡师5 小时前
docker一键部署夜莺监控
运维·docker·容器
0思必得05 小时前
[Web自动化] HTML列表标签
运维·python·自动化·html·web自动化