宝塔51特惠活动,企业版1099元/年,送SSL证书,最高立减2万元!查看活动
当前位置:论坛首页 > Linux面板 > 求助

【已完成】宝塔运行了一段时间,Apache不正常了

发表在 Linux面板2022-12-14 00:58 [复制链接] 9 8405

宝塔显示Apache正常,绿色,但是网站不能访问了,重启Apache,网站就恢复正常了。日志太多了,我已经精简了一部分。


UC截图20221214012016.jpg

使用道具 举报 只看该作者 回复
发表于 2022-12-14 01:31:10 | 显示全部楼层

[Fri Dec 09 05:35:46.732710 2022] [mpm_event:notice] [pid 674:tid 139831696716352] AH00493: SIGUSR1 received.  Doing graceful restart
[Fri Dec 09 05:35:46.787420 2022] [ssl:warn] [pid 674:tid 139831696716352] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Fri Dec 09 05:35:49.055665 2022] [ssl:warn] [pid 674:tid 139831696716352] AH01909: ssl.default.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri Dec 09 05:35:49.055951 2022] [lbmethod_heartbeat:notice] [pid 674:tid 139831696716352] AH02282: No slotmem from mod_heartmonitor
[Fri Dec 09 05:35:49.056264 2022] [mpm_event:notice] [pid 674:tid 139831696716352] AH00489: Apache/2.4.54 (Unix) OpenSSL/1.1.1d configured -- resuming normal operations
[Fri Dec 09 05:35:49.056275 2022] [core:notice] [pid 674:tid 139831696716352] AH00094: Command line: '/www/server/apache/bin/httpd'
[Fri Dec 09 05:35:49.164972 2022] [mpm_event:alert] [pid 18225:tid 139831696716352] (11)Resource temporarily unavailable: AH00480: ap_thread_create: unable to create worker thread

使用道具 举报 回复 支持 反对
发表于 2022-12-14 01:33:16 | 显示全部楼层
[Sun Dec 11 06:06:52.745417 2022] [lbmethod_heartbeat:notice] [pid 21386:tid 139761060549184] AH02282: No slotmem from mod_heartmonitor
[Sun Dec 11 06:06:52.745916 2022] [mpm_event:notice] [pid 21386:tid 139761060549184] AH00489: Apache/2.4.54 (Unix) OpenSSL/1.1.1d configured -- resuming normal operations
[Sun Dec 11 06:06:52.745932 2022] [core:notice] [pid 21386:tid 139761060549184] AH00094: Command line: '/www/server/apache/bin/httpd'
[Sun Dec 11 06:07:15.642969 2022] [mpm_event:notice] [pid 21386:tid 139761060549184] AH00493: SIGUSR1 received.  Doing graceful restart
[Sun Dec 11 06:07:15.698114 2022] [ssl:warn] [pid 21386:tid 139761060549184] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Sun Dec 11 06:07:15.706550 2022] [ssl:warn] [pid 21386:tid 139761060549184] AH01909: ssl.default.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Dec 11 08:27:18.335296 2022] [lbmethod_heartbeat:notice] [pid 21386:tid 139761060549184] AH02282: No slotmem from mod_heartmonitor
[Sun Dec 11 08:27:18.335808 2022] [mpm_event:notice] [pid 21386:tid 139761060549184] AH00489: Apache/2.4.54 (Unix) OpenSSL/1.1.1d configured -- resuming normal operations
[Sun Dec 11 08:27:18.335834 2022] [core:notice] [pid 21386:tid 139761060549184] AH00094: Command line: '/www/server/apache/bin/httpd'
[Sun Dec 11 11:27:55.212555 2022] [ssl:error] [pid 27687:tid 139760047748864] [client 18.232.176.150:32868] AH02042: rejecting client initiated renegotiation
[Sun Dec 11 14:11:55.343727 2022] [lua:warn] [pid 30349:tid 139760400045824] AH01471: Lua error: /www/server/total/memcached.lua:110: bad argument #1 to 'sub' (string expected, got nil)
[Sun Dec 11 14:15:44.496617 2022] [lua:warn] [pid 27395:tid 139760098072320] AH01471: Lua error: /www/server/btwaf/memcached.lua:110: bad argument #1 to 'sub' (string expected, got nil)


使用道具 举报 回复 支持 反对
发表于 2022-12-14 01:34:49 | 显示全部楼层


[Tue Dec 13 07:28:49.954919 2022] [mpm_event:alert] [pid 21386:tid 139761060549184] AH02324: A resource shortage or other unrecoverable failure was encountered before any child process initialized successfully... httpd is exiting!
[Tue Dec 13 15:26:03.358687 2022] [ssl:warn] [pid 30224:tid 140211470291520] AH01909: ssl.default.com:443:0 server certificate does NOT include an ID which matches the server name
[Tue Dec 13 15:26:03.397220 2022] [lbmethod_heartbeat:notice] [pid 30225:tid 140211470291520] AH02282: No slotmem from mod_heartmonitor
[Tue Dec 13 15:26:03.397504 2022] [core:warn] [pid 30225:tid 140211470291520] AH00098: pid file /www/server/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Tue Dec 13 15:26:04.067667 2022] [mpm_event:notice] [pid 30225:tid 140211470291520] AH00494: SIGHUP received.  Attempting to restart
[Tue Dec 13 15:26:06.453870 2022] [lbmethod_heartbeat:notice] [pid 30225:tid 140211470291520] AH02282: No slotmem from mod_heartmonitor
[Tue Dec 13 15:26:06.462938 2022] [mpm_event:notice] [pid 30225:tid 140211470291520] AH00489: Apache/2.4.54 (Unix) OpenSSL/1.1.1d configured -- resuming normal operations
[Tue Dec 13 15:26:06.463000 2022] [core:notice] [pid 30225:tid 140211470291520] AH00094: Command line: '/www/server/apache/bin/httpd'
[Tue Dec 13 15:35:58.226966 2022] [mpm_event:notice] [pid 30225:tid 140211470291520] AH00493: SIGUSR1 received.  Doing graceful restart
[Tue Dec 13 15:35:58.295356 2022] [ssl:warn] [pid 30225:tid 140211470291520] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue Dec 13 15:35:58.320059 2022] [ssl:warn] [pid 30225:tid 140211470291520] AH01909: ssl.default.com:443:0 server certificate does NOT include an ID which matches the server name
[Tue Dec 13 15:35:58.320621 2022] [lbmethod_heartbeat:notice] [pid 30225:tid 140211470291520] AH02282: No slotmem from mod_heartmonitor
[Tue Dec 13 15:35:58.321257 2022] [mpm_event:notice] [pid 30225:tid 140211470291520] AH00489: Apache/2.4.54 (Unix) OpenSSL/1.1.1d configured -- resuming normal operations
[Tue Dec 13 15:35:58.321286 2022] [core:notice] [pid 30225:tid 140211470291520] AH00094: Command line: '/www/server/apache/bin/httpd'

使用道具 举报 回复 支持 反对
发表于 2022-12-14 01:36:42 | 显示全部楼层


Warning: Could not connect to localhost:11211
[Mon Dec 12 16:51:51.925368 2022] [mpm_event:notice] [pid 21386:tid 139761060549184] AH00493: SIGUSR1 received.  Doing graceful restart
[Mon Dec 12 16:51:51.994719 2022] [ssl:warn] [pid 21386:tid 139761060549184] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Dec 12 16:51:52.009888 2022] [ssl:warn] [pid 21386:tid 139761060549184] AH01909: ssl.default.com:443:0 server certificate does NOT include an ID which matches the server name
[Tue Dec 13 07:28:47.277082 2022] [lbmethod_heartbeat:notice] [pid 21386:tid 139761060549184] AH02282: No slotmem from mod_heartmonitor
[Tue Dec 13 07:28:47.277569 2022] [mpm_event:notice] [pid 21386:tid 139761060549184] AH00489: Apache/2.4.54 (Unix) OpenSSL/1.1.1d configured -- resuming normal operations
[Tue Dec 13 07:28:47.277588 2022] [core:notice] [pid 21386:tid 139761060549184] AH00094: Command line: '/www/server/apache/bin/httpd'
[Tue Dec 13 07:28:49.539695 2022] [mpm_event:alert] [pid 13647:tid 139760702904064] (11)Resource temporarily unavailable: AH03104: ap_thread_create: unable to create worker thread
使用道具 举报 回复 支持 反对
发表于 2022-12-14 01:39:07 | 显示全部楼层
[Mon Dec 12 03:13:21.526102 2022] [lua:crit] [pid 13787:tid 139759804458752] [client 127.0.0.1:57968] AH03017: Lua ho ok /www/server/total/httpd_log.lua:run_logs for phase log_transaction did not return a numeric value
[Mon Dec 12 09:20:44.386976 2022] [mpm_event:warn] [pid 21386:tid 139761060549184] AH10392: children are kill ed successively
[Mon Dec 12 13:12:32.270396 2022] [core:notice] [pid 21386:tid 139761060549184] AH00052: child pid 27334 exit signal Segmentation fault  11
[Mon Dec 12 15:35:19.997882 2022] [lua:warn] [pid 29735:tid 139760576227072] AH01471: Lua error ~ /www/server/btwaf/httpd.lua:100: attempt to concatenate upvalue “request_uri” (a nil value)
使用道具 举报 回复 支持 反对
发表于 2022-12-14 04:10:08 | 显示全部楼层
PHP守护没守护住Apache
使用道具 举报 回复 支持 反对
发表于 2022-12-14 10:18:29 | 显示全部楼层
您好,尝试下方设置下,然后看下有无对你有帮助,如果不行的话,建议做个定时重启apache脚本

打开软件商店--apache设置,CTRL+F搜索mod_socache_shmcb.so 9.png

将#LoadModule socache_shmcb_module modules/mod_socache_shmcb.so改为LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
然后保存,重启apache使其配置生效
10.png
找到并打开/www/server/apache/conf/extra/httpd-ssl.conf
在文中寻找是否有这一行,如果没有就添加
SSLSessionCache "shmcb:/www/server/apach/logs/ssl_scache(512000)"
11.png

使用道具 举报 回复 支持 反对
发表于 2022-12-14 14:16:12 | 显示全部楼层
本帖最后由 myboss 于 2022-12-14 14:29 编辑
谢花郎 发表于 2022-12-14 10:18
您好,尝试下方设置下,然后看下有无对你有帮助,如果不行的话,建议做个定时重启apache脚本

打开软件商店 ...


感谢,大神,希望能解决

为后人奉上,定时重启apache脚本,
  1. service httpd restart
复制代码
使用道具 举报 回复 支持 反对
发表于 2022-12-17 23:52:58 | 显示全部楼层
谢花郎 发表于 2022-12-14 10:18
您好,尝试下方设置下,然后看下有无对你有帮助,如果不行的话,建议做个定时重启apache脚本

打开软件商店 ...

error_log.zip (27.39 KB, 下载次数: 5362)
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

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

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

紧急运维服务

响应时间:3分钟

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

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

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

点击联系技术免费分析
快速回复 返回顶部 返回列表