宝塔用户_coftix 发表于 2025-12-10 23:34:26

【待反馈】升级8.4.9后apache会自动停止

为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:宝塔面版8.4.9,Apache 2.4.54
AH00430: Parent: Child process 21220 exited successfully. FastCGI process 31208 still did not exit, terminating forcefully FastCGI process 9468 still did not exit, terminating forcefully AH00364: Child: All worker threads have exited. AH00422: Parent: Received shutdown signal -- Shutting down the server. AH00354: Child: Starting 1500 worker threads. AH01873: Init: Session Cache is not configured AH00418: Parent: Created child process 21220 AH00094: Command line: 'D:\\BtSoft\\apache\\bin\\httpd.exe -d D:/BtSoft/apache' AH00456: Server built: Jun 23 2022 13:45:17
系统版本:windows宝塔面版
问题描述:
apache运行后自动停止
相关截图(日志、错误):

阿珂 发表于 2025-12-11 11:35:56

私信发面板信息,这边看下

宝塔用户_hxxxgo 发表于 2025-12-11 14:05:59

同样的问题,我已经解决,
1.首先在宝塔面板内把apache关了,然后查看80端口是否被占用
netstat -ano | findstr :80

2.我这边看到的结果是这样的,

C:\Users\Administrator>netstat -ano | findstr :80
TCP    0.0.0.0:80             0.0.0.0:0            LISTENING       14632
TCP    192.168.13.154:49670   100.64.205.163:80      ESTABLISHED   3148
TCP    [::]:80                [::]:0               LISTENING       14632

等于说在apache还没启动的时候,就已经有端口占用了,14632端口,
接下来看14632端口具体是什么

wmic process where "ProcessId=14632" get ProcessId,Name,CommandLine

C:\Users\Administrator>wmic process where "ProcessId=14632" get ProcessId,Name,CommandLine
CommandLine                                     Name       ProcessId
"C:\BtSoft\apache\bin\httpd.exe" -k runservicehttpd.exe14632

这里可以看到,PID 14632 也是 httpd.exe,路径同样是 C:\BtSoft\apache\bin\httpd.exe

等于说有两个 Apache 实例,一个是PID 6252(主进程) + 15912(子进程)
另一个是PID 14632(独立 httpd 进程),它先占用了 80 端口

这就会导致第二个 Apache(6252)启动时,实际上无法真正绑定 80 端口(因为已被 14632 占用)

几分钟后,可能因健康检查失败、父进程检测到异常,或宝塔尝试的主动健康检查机制清理重复进程啥的,,主动发出了 shutdown 信号

宝塔用户_hxxxgo 发表于 2025-12-11 14:20:46

宝塔用户_hxxxgo 发表于 2025-12-11 14:05
同样的问题,我已经解决,
1.首先在宝塔面板内把apache关了,然后查看80端口是否被占用
netstat -ano | fin ...

忘记说解决方案了,其实就很简单,把非宝塔的httpd进程清理掉,
taskkill /f /pid 6252
taskkill /f /pid 15912
taskkill /f /pid 14632

然后再在宝塔面板内启动apache,然后再去查看进程是否被占用,如果只有一个,那就是对的。

然后再过一会儿看还会不会自动关闭apache

宝塔用户_hxxxgo 发表于 2025-12-11 20:40:52

不对,还是不行

天云老祖 发表于 2025-12-12 10:03:13

我昨天更新8.4.9后,也出现了,弄了一晚上都没解决。

天云老祖 发表于 2025-12-12 10:05:02

我昨天升级8.4.9后也出现这个问题了。一晚上都没搞定。

阿珂 发表于 2025-12-12 17:37:45

修复一下面板,已经处理了
页: [1]
查看完整版本: 【待反馈】升级8.4.9后apache会自动停止