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

【已解决】php不能安装扩展,点安装正常提示下载安装,...

发表在 Linux面板2023-4-21 08:00 [复制链接] 5 3054

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:7.99

php8.1安装扩展
系统版本:ubuntu220401

ubuntu220401
问题描述:不能安装扩展,点安装正常提示下载安装,但实际没有安装,还是显示安装状态。

不能安装扩展
相关截图(日志、错误):

[21-Apr-2023 03:33:24] NOTICE: fpm is running, pid 364229
[21-Apr-2023 03:33:24] NOTICE: ready to handle connections
[21-Apr-2023 06:25:52] NOTICE: Finishing ...
[21-Apr-2023 06:25:52] NOTICE: exiting, bye-bye!
[21-Apr-2023 06:25:53] NOTICE: fpm is running, pid 433252
[21-Apr-2023 06:25:53] NOTICE: ready to handle connections
[21-Apr-2023 06:29:37] NOTICE: Reloading in progress ...
[21-Apr-2023 06:29:37] NOTICE: reloading: execvp("/www/server/php/81/sbin/php-fpm", {"/www/server/php/81/sbin/php-fpm", "--daemonize", "--fpm-config", "/www/server/php/81/etc/php-fpm.conf", "--pid", "/www/server/php/81/var/run/php-fpm.pid"})
[21-Apr-2023 06:29:37] NOTICE: using inherited socket fd=7, "/tmp/php-cgi-81.sock"
[21-Apr-2023 06:29:37] NOTICE: using inherited socket fd=7, "/tmp/php-cgi-81.sock"
[21-Apr-2023 06:29:37] NOTICE: fpm is running, pid 434009
[21-Apr-2023 06:29:37] NOTICE: ready to handle connections
[21-Apr-2023 06:29:42] NOTICE: Finishing ...
[21-Apr-2023 06:29:42] NOTICE: exiting, bye-bye!
[21-Apr-2023 06:29:43] NOTICE: fpm is running, pid 434034
[21-Apr-2023 06:29:43] NOTICE: ready to handle connections
[21-Apr-2023 06:32:43] NOTICE: Reloading in progress ...
[21-Apr-2023 06:32:43] NOTICE: reloading: execvp("/www/server/php/81/sbin/php-fpm", {"/www/server/php/81/sbin/php-fpm", "--daemonize", "--fpm-config", "/www/server/php/81/etc/php-fpm.conf", "--pid", "/www/server/php/81/var/run/php-fpm.pid"})
[21-Apr-2023 06:32:43] NOTICE: using inherited socket fd=7, "/tmp/php-cgi-81.sock"
[21-Apr-2023 06:32:43] NOTICE: using inherited socket fd=7, "/tmp/php-cgi-81.sock"
[21-Apr-2023 06:32:43] NOTICE: fpm is running, pid 435470
[21-Apr-2023 06:32:43] NOTICE: ready to handle connections
[21-Apr-2023 07:01:11] NOTICE: Finishing ...
[21-Apr-2023 07:01:11] NOTICE: exiting, bye-bye!
[21-Apr-2023 07:01:12] NOTICE: fpm is running, pid 477971
[21-Apr-2023 07:01:12] NOTICE: ready to handle connections
[21-Apr-2023 07:04:46] NOTICE: fpm is running, pid 1721
[21-Apr-2023 07:04:46] NOTICE: ready to handle connections
[21-Apr-2023 07:13:30] NOTICE: Finishing ...
[21-Apr-2023 07:13:31] NOTICE: exiting, bye-bye!
[21-Apr-2023 07:31:46] NOTICE: fpm is running, pid 1929
[21-Apr-2023 07:31:46] NOTICE: ready to handle connections





2.png
1.png
使用道具 举报 只看该作者 回复
发表于 2023-4-21 09:17:42 | 显示全部楼层
您好,麻烦您提供下扩展安装的执行日志,需要具体看下扩展安装过程的执行日志
才能确定扩展无法正常安装原因,常见的可能是存在缺少对应组件之类的。
2.png
使用道具 举报 回复 支持 反对
发表于 2023-4-21 09:32:07 | 显示全部楼层
谢花郎 发表于 2023-4-21 09:17
您好,麻烦您提供下扩展安装的执行日志,需要具体看下扩展安装过程的执行日志
才能确定扩展无法正常安装原 ...

我全部生成PDF格式,谢谢

日记.pdf

577.29 KB, 下载次数: 1894

使用道具 举报 回复 支持 反对
发表于 2023-4-21 09:43:32 | 显示全部楼层
服务器系统内缺少了autoconf组件,所以导致PHP扩展安装失败了。您到服务器命令行下安装autoconf组件
然后重新安装PHP扩展,如果安装不上,还是需要您提供下具体的执行日志
Centos系统:
  1. yum -y install autoconf
复制代码

Ubuntu/Debian系统:
  1. apt-get update
  2. apt-get install autoconf
复制代码

以上命令仅安装autoconf组件操作,不涉及其他网站以及数据操作。
使用道具 举报 回复 支持 反对
发表于 2023-4-21 09:56:53 | 显示全部楼层
谢花郎 发表于 2023-4-21 09:43
服务器系统内缺少了autoconf组件,所以导致PHP扩展安装失败了。您到服务器命令行下安装autoconf组件
然后重 ...

可以安装了,谢谢很高效
使用道具 举报 回复 支持 反对
发表于 2023-4-21 09:59:10 | 显示全部楼层
chenman 发表于 2023-4-21 09:56
可以安装了,谢谢很高效

感谢认可以及使用宝塔面板,祝您生活愉快!
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

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

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

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

点击联系技术免费分析

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

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