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

【待反馈】apache总是假死,已经有3个多月了

发表在 Windows面板2023-4-16 13:56 [复制链接] 5 2714

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:
宝塔7.8.
Apache/2.4.52 (Win64) OpenSSL/1.1.1m mod_fcgid/2.3.9a
系统版本:win2012
问题描述:网站莫名其妙打不开,能一天出现一次,也可能7天,也可能2天。没有固定。
每次重启apache就好了

日志在2楼
使用道具 举报 只看该作者 回复
发表于 2023-4-16 13:58:59 | 显示全部楼层
这个时候是能打开的,无法打开的时候,出现日志也是差不多。每次都是重启apache就好了

[Sun Apr 16 13:24:14.173791 2023] [authz_core:error] [pid 1952:tid 80748] [client 120.31.71.201:49378] AH01630: client denied by server configuration: A:/wwwroot/wwww/server-status
[Sun Apr 16 13:25:49.876101 2023] [ssl:warn] [pid 48828:tid 464] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Sun Apr 16 13:25:49.922979 2023] [core:warn] [pid 48828:tid 464] AH00098: pid file B:/BtSof/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sun Apr 16 13:25:49.922979 2023] [ssl:warn] [pid 48828:tid 464] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Sun Apr 16 13:25:49.922979 2023] [ssl:warn] [pid 48828:tid 464] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Sun Apr 16 13:25:49.922979 2023] [mpm_winnt:notice] [pid 48828:tid 464] AH00455: Apache/2.4.52 (Win64) OpenSSL/1.1.1m mod_fcgid/2.3.9a configured -- resuming normal operations
[Sun Apr 16 13:25:49.922979 2023] [mpm_winnt:notice] [pid 48828:tid 464] AH00456: Server built: Dec 17 2021 15:13:12
[Sun Apr 16 13:25:49.922979 2023] [core:notice] [pid 48828:tid 464] AH00094: Command line: 'z:\\BtSoft\\apache\\bin\\httpd.exe -d B:/BtSof/apache'
[Sun Apr 16 13:25:49.922979 2023] [mpm_winnt:notice] [pid 48828:tid 464] AH00418: Parent: Created child process 42836
[Sun Apr 16 13:25:50.157372 2023] [ssl:warn] [pid 42836:tid 368] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Sun Apr 16 13:25:50.172998 2023] [ssl:warn] [pid 42836:tid 368] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Sun Apr 16 13:25:50.172998 2023] [ssl:warn] [pid 42836:tid 368] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Sun Apr 16 13:25:50.204251 2023] [ssl:warn] [pid 42836:tid 368] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]

使用道具 举报 回复 支持 反对
发表于 2023-4-16 14:06:12 | 显示全部楼层
下面这个时候是无法打开的
[Sun Apr 16 11:52:57.766721 2023] [core:error] [pid 34608:tid 80340] [client 223.104.68.83:19449] End of script output before headers: index.php, referer: https://servicewechat.com/wx4a17b13835116d53/47/page-frame.html
[Sun Apr 16 11:52:58.172970 2023] [fcgid:warn] [pid 48064:tid 81272] (OS 109)管道已结束。  : [client 49.7.20.65:35625] mod_fcgid: get overlap result error
[Sun Apr 16 11:52:58.172970 2023] [core:error] [pid 48064:tid 81272] [client 49.7.20.65:35625] End of script output before headers: index.php
[Sun Apr 16 11:52:58.532343 2023] [fcgid:warn] [pid 34608:tid 40064] [client 119.84.229.196:4446] mod_fcgid: can't apply process slot for A:/BtSoft/php/55/php-cgi.exe, referer: https://www.720run.com/vr/fb71c3d
[Sun Apr 16 11:52:58.829218 2023] [fcgid:warn] [pid 34608:tid 40568] [client 113.98.246.236:51605] mod_fcgid: can't apply process slot for A:/BtSoft/php/55/php-cgi.exe
[Sun Apr 16 11:52:58.922967 2023] [fcgid:warn] [pid 34608:tid 79900] (OS 109)管道已结束。  : [client 66.249.69.93:39980] mod_fcgid: get overlap result error
[Sun Apr 16 11:52:58.922967 2023] [core:error] [pid 34608:tid 79900] [client 66.249.69.93:39980] End of script output before headers: index.php
[Sun Apr 16 11:52:59.172966 2023] [fcgid:warn] [pid 48064:tid 80492] (OS 109)管道已结束。  : [client 101.67.49.32:25679] mod_fcgid: get overlap result error
[Sun Apr 16 11:52:59.172966 2023] [core:error] [pid 48064:tid 80492] [client 101.67.49.32:25679] End of script output before headers: t.php
[Sun Apr 16 11:52:59.844840 2023] [fcgid:warn] [pid 34608:tid 80420] (OS 109)管道已结束。  : [client 113.88.156.73:30052] mod_fcgid: get overlap result error, referer: https://servicewechat.com/wx4a17b13835116d53/47/page-frame.html
[Sun Apr 16 11:52:59.844840 2023] [core:error] [pid 34608:tid 80420] [client 113.88.156.73:30052] End of script output before headers: index.php, referer: https://servicewechat.com/wx4a17b13835116d53/47/page-frame.html
[Sun Apr 16 11:53:00.297985 2023] [fcgid:warn] [pid 48064:tid 80524] (OS 109)管道已结束。  : [client 223.104.68.83:22392] mod_fcgid: get overlap result error, referer: https://servicewechat.com/wx4a17b13835116d53/47/page-frame.html
[Sun Apr 16 11:53:00.297985 2023] [core:error] [pid 48064:tid 80524] [client 223.104.68.83:22392] End of script output before headers: index.php, referer: https://servicewechat.com/wx4a17b13835116d53/47/page-frame.html
[Sun Apr 16 11:53:01.016710 2023] [fcgid:warn] [pid 48064:tid 81228] (OS 109)管道已结束。  : [client 223.104.68.83:19455] mod_fcgid: get overlap result error, referer: https://servicewechat.com/wx4a17b13835116d53/47/page-frame.html
[Sun Apr 16 11:53:01.016710 2023] [core:error] [pid 48064:tid 81228] [client 223.104.68.83:19455] End of script output before headers: index.php, referer: https://servicewechat.com/wx4a17b13835116d53/47/page-frame.html

1.png
2.png
3.png
4.jpg
使用道具 举报 回复 支持 反对
发表于 2023-4-16 14:51:01 | 显示全部楼层
之前的mod_fcgid.conf配置文件

#此文件为宝塔调整性能
<IfModule mod_fcgid.c>  
        AddHandler  fcgid-script .fcgi
        FcgidFixPathinfo                        0
       
        FcgidIdleTimeout                        20
        FcgidBusyTimeout                        20       
        FcgidProcessLifeTime                        20

        FcgidIOTimeout                        600
        FcgidConnectTimeout                        10

        FcgidMaxProcesses                        60
        FcgidMaxProcessesPerClass                        30
        FcgidMaxRequestsPerProcess                        5000
        FcgidMaxRequestLen                 10737418240

        FcgidErrorScanInterval 10
</IfModule>



现在的mod_fcgid.conf配置文件。看是否还会有错误。


#此文件为宝塔调整性能
<IfModule mod_fcgid.c>  
        AddHandler  fcgid-script .fcgi
        FcgidFixPathinfo                        0
       
        FcgidIdleTimeout                        1200
        FcgidBusyTimeout                        1200       
        FcgidProcessLifeTime                        1200

        FcgidIOTimeout                                1200
        FcgidConnectTimeout                        1200

        FcgidMaxProcesses                        60
        FcgidMaxProcessesPerClass                30
        FcgidMaxRequestsPerProcess                10000
        FcgidMaxRequestLen                      10737418240

        FcgidErrorScanInterval                  1200



</IfModule>



使用道具 举报 回复 支持 反对
发表于 2023-5-24 11:25:05 | 显示全部楼层
Received restart signal -- Restarting the server. 这样ok

使用道具 举报 回复 支持 反对
发表于 2023-11-29 16:23:25 | 显示全部楼层
我也遇到这个问题,apache时不时假死,过一会儿就好了,不定时的又假死。网上找到的解决方案,正在试用中,不保证可以解决问题。用作参考吧
在httpd.conf中添加如下代码

AcceptFilter http none

AcceptFilter https none

EnableSendfile Off

EnableMMAP off

使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

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

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

紧急运维服务

响应时间:3分钟

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

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

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

立即付费处理

工作时间:09:00至24:00

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