当前位置:论坛首页 > Linux面板 > 求助

【已解答】安装好PHP8.0后,不能启动

发表在 Linux面板2021-1-3 17:28 [复制链接] 8 3460

警告消息:
/www/server/php/80/sbin/php-fpm: error while loading shared libraries: libsodium.so.23: cannot open shared object file: No such file or directory
使用道具 举报 只看该作者 回复
发表于 2021-1-3 17:30:13 | 显示全部楼层
论坛搜不到解决方案,麻烦工程师帮忙看一下。
使用道具 举报 回复 支持 反对
发表于 2021-1-3 17:41:25 | 显示全部楼层
只有PHP5.6能正常启动,PHP7.4和PHP8.0都不能正常启动
使用道具 举报 回复 支持 反对
发表于 2021-1-3 17:42:04 | 显示全部楼层
这是PHP7.4启动失败的提示:
警告消息:

/www/server/php/74/sbin/php-fpm: error while loading shared libraries: libsodium.so.23: cannot open shared object file: No such file or directory
使用道具 举报 回复 支持 反对
发表于 2021-1-3 17:49:18 | 显示全部楼层
[root@ecs-a292-0304599 ~]# yum -y install libsodium-devel
Repository AppStream is listed more than once in the configuration
Repository BaseOS is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository PowerTools is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
CentOS-8 - Base                                                                                                            888 kB/s | 3.9 kB     00:00   
CentOS-8 - AppStream                                                                                                       3.1 MB/s | 4.3 kB     00:00   
CentOS-8 - PowerTools                                                                                                      3.0 MB/s | 4.3 kB     00:00   
CentOS-8 - Extras                                                                                                          1.3 MB/s | 1.5 kB     00:00   
No match for argument: libsodium-devel
Error: Unable to find a match: libsodium-devel

搜了一下论坛的其他帖子,尝试安装libsodium-devel,提示这个错误
使用道具 举报 回复 支持 反对
发表于 2021-1-4 09:24:26 | 显示全部楼层
aooicom 发表于 2021-1-3 17:49
[root@ecs-a292-0304599 ~]# yum -y install libsodium-devel
Repository AppStream is listed more than o ...

您好,安装这个依赖扩展是需要epel源的,如您未安装epel源,请先安装epel源后再安装依赖。
如不知道安装epel源,请联系服务器运营商那边技术协助您安装。
使用道具 举报 回复 支持 反对
发表于 2021-1-4 10:36:09 | 显示全部楼层
  1. yum -y install libsodium
复制代码

执行这条命令截个图出来看看
使用道具 举报 回复 支持 反对
发表于 2021-1-4 12:28:00 | 显示全部楼层
Last login: Sun Jan  3 17:54:54 2021 from 127.0.0.1
[root@ecs-a292-0304599 ~]# yum -y install libsodium
Repository AppStream is listed more than once in the configuration
Repository BaseOS is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository PowerTools is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Last metadata expiration check: 1:47:46 ago on Mon 04 Jan 2021 10:40:01 AM CST.
No match for argument: libsodium
Error: Unable to find a match: libsodium
使用道具 举报 回复 支持 反对
发表于 2021-1-4 12:30:06 | 显示全部楼层
这是执行yum -y install libsodium 命令后返回的结果
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表