宝塔用户_zgdxcc 发表于 2024-11-26 11:40:10

【已完成】宝塔安装完php后无法启动

为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:
9.2.0
系统版本:系统:Ubuntu 22.04.2 LTS (Jammy Jellyfish) x86_64(Py3.7.8)



问题描述:安装php后无法启动
相关截图(日志、错误):

宝塔用户_zgdxcc 发表于 2024-11-26 11:41:21

启动失败,请点击详情,pid文件不存在:/www/server/php/74/var/run/php-fpm.pid
论坛无法发送图片,说超出了字符;也无法发送错误信息,说违规

宝塔用户_zgdxcc 发表于 2024-11-26 11:42:20

错误信息无法发送,论坛提示:抱歉,您填写的内容包含不良信息而无法提交

宝塔用户_zgdxcc 发表于 2024-11-26 11:56:25

Starting php-fpm /www/server/php/74/sbin/php-fpm: error while loading shared libraries: libonig.so.5: cannot open shared object file: No such file or directory

堡塔运维南一 发表于 2024-11-26 17:12:03

您好,执行下面命令之后,重新安装php
apt-get update
apt-get install libonig5

宝塔用户_zgdxcc 发表于 2024-11-26 17:37:23

堡塔运维南一 发表于 2024-11-26 17:12
您好,执行下面命令之后,重新安装php
apt-get update
apt-get install libonig5

apt-get install libonig5
错误提示
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
binutils : Depends: binutils-common (= 2.38-4ubuntu2.2) but 2.38-4ubuntu2.6 i

宝塔用户_zgdxcc 发表于 2024-11-26 17:40:56

堡塔运维南一 发表于 2024-11-26 17:12
您好,执行下面命令之后,重新安装php
apt-get update
apt-get install libonig5

安装好php后无法安装php 的redis扩展
错误信息:
Configuring for:
PHP Api Version: 20190902
Zend Module Api No: 20190902
Zend Extension Api No: 320190902
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.

redis.sh: line 252: ./configure: No such file or directory
make: *** No targets specified and no makefile found. Stop.
error

宝塔用户_zgdxcc 发表于 2024-11-26 17:46:06

宝塔用户_zgdxcc 发表于 2024-11-26 17:40
安装好php后无法安装php 的redis扩展
错误信息:
Configuring for:


redis-5.3.7/redis_session.c
redis-5.3.7/redis_session.h
redis-5.3.7/redis_sentinel.c
redis-5.3.7/redis_sentinel.h
redis-5.3.7/sentinel_library.c
redis-5.3.7/sentinel_library.h
Configuring for:
PHP Api Version: 20190902
Zend Module Api No: 20190902
Zend Extension Api No: 320190902
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.

redis.sh: line 252: ./configure: No such file or directory
make: *** No targets specified and no makefile found. Stop.
error
|-Successify --- 命令已执行! ---

堡塔运维南一 发表于 2024-12-12 16:58:09

您好,这个问题如果没有解决的话,请重新发帖哈,这篇帖子就关闭了
页: [1]
查看完整版本: 【已完成】宝塔安装完php后无法启动