简体   繁体   English

Apache2 sigterm在Debian上崩溃

[英]Apache2 sigterm crash on debian

I have an issue with my debian server. 我的debian服务器有问题。
I have a website hosted on an apache2 but 2 times per day, apache crash and my website is not accessible. 我有一个网站托管在apache2上,但每天2次,apache崩溃,并且我的网站无法访问。
I have looked log files and I haven't a lot of information. 我查看了日志文件,但没有太多信息。
Here are my logs : 这是我的日志:

access.log 访问日志

13.235.52.55:443 - - [24/May/2018:10:05:51 +0200] "GET / HTTP/1.1" 200 13244 "-" "Python-urllib/2.7" 13.235.52.55:443--[24 / May / 2018:10:05:51 +0200]“ GET / HTTP / 1.1” 200 13244“-”“ Python-urllib / 2.7”
13.235.52.55:443 - - [24/May/2018:10:05:52 +0200] "GET / HTTP/1.1" 200 13309 "-" "Python-urllib/2.7" 13.235.52.55:443--[24 / May / 2018:10:05:52 +0200]“ GET / HTTP / 1.1” 200 13309“-”“ Python-urllib / 2.7”
13.235.52.55:443 - - [24/May/2018:10:05:52 +0200] "GET / HTTP/1.1" 200 13309 "-" "Python-urllib/2.7" 13.235.52.55:443--[24 / May / 2018:10:05:52 +0200]“ GET / HTTP / 1.1” 200 13309“-”“ Python-urllib / 2.7”
13.235.52.55:443 - - [24/May/2018:10:05:53 +0200] "GET / HTTP/1.1" 200 13309 "-" "Python-urllib/2.7" 13.235.52.55:443--[24 / May / 2018:10:05:53 +0200]“ GET / HTTP / 1.1” 200 13309“-”“ Python-urllib / 2.7”
13.235.52.55:443 - - [24/May/2018:10:05:54 +0200] "GET / HTTP/1.1" 200 13309 "-" "Python-urllib/2.7" 13.235.52.55:443--[24 / May / 2018:10:05:54 +0200]“ GET / HTTP / 1.1” 200 13309“-”“ Python-urllib / 2.7”

error.log 错误日志

[Thu May 24 08:00:31.698217 2018] [mpm_prefork:notice] [pid 3544] AH00163: Apache/2.4.10 (Debian) OpenSSL/1.0.1t configured -- resuming normal operations [2018年5月24日星期四08:00:31.698217] [mpm_prefork:notice] [pid 3544] AH00163:配置了Apache / 2.4.10(Debian)OpenSSL / 1.0.1t-恢复正常操作
[Thu May 24 08:00:31.698270 2018] [core:notice] [pid 3544] AH00094: Command line: '/usr/sbin/apache2' [2018年5月24日星期四08:00:31.698270] [core:notice] [pid 3544] AH00094:命令行:'/ usr / sbin / apache2'
[Thu May 24 12:17:43.064962 2018] [mpm_prefork:notice] [pid 3544] AH00169: caught SIGTERM, shutting down [2018年5月24日星期四12:17:43.064962] [mpm_prefork:notice] [pid 3544] AH00169:捕获了SIGTERM,关闭了
[Thu May 24 12:17:46.968823 2018] [mpm_prefork:notice] [pid 4518] AH00163: Apache/2.4.10 (Debian) OpenSSL/1.0.1t configured -- resuming normal operations [2018年5月24日星期四12:17:46.968823] [mpm_prefork:notice] [pid 4518] AH00163:已配置Apache / 2.4.10(Debian)OpenSSL / 1.0.1t-恢复正常操作
[Thu May 24 12:17:46.968889 2018] [core:notice] [pid 4518] AH00094: Command line: '/usr/sbin/apache2' [2018年5月24日星期四12:17:46.968889] [core:notice] [pid 4518] AH00094:命令行:'/ usr / sbin / apache2'
[Thu May 24 12:17:47.011670 2018] [mpm_prefork:notice] [pid 4518] AH00169: caught SIGTERM, shutting down [2018年5月24日星期四12:17:47.011670] [mpm_prefork:notice] [pid 4518] AH00169:捕获了SIGTERM,关闭了

Generally, apache crash at 12:17PM and 00:17AM 通常,apache在12:17 PM和00:17 AM崩溃

I have already check for a DoS attack, but I have not enough access in the access.log 我已经检查了DoS攻击,但是在access.log中没有足够的访问权限

Finally, I have found the following in my phperror log 最后,我在phperror日志中找到了以下内容

[24-May-2018 13:39:01 Europe/Berlin] PHP Warning: Module 'PDO' already loaded in Unknown on line 0 [24-May-2018 13:39:01欧洲/柏林] PHP警告:模块“ PDO”已在第0行的“未知”中加载
[24-May-2018 14:09:01 Europe/Berlin] PHP Warning: Module 'PDO' already loaded in Unknown on line 0 [24-May-2018 14:09:01欧洲/柏林] PHP警告:模块“ PDO”已在第0行的“未知”中加载
[24-May-2018 14:39:01 Europe/Berlin] PHP Warning: Module 'PDO' already loaded in Unknown on line 0 [24-May-2018 14:39:01欧洲/柏林] PHP警告:模块“ PDO”已在第0行的“未知”中加载
[24-May-2018 15:09:01 Europe/Berlin] PHP Warning: Module 'PDO' already loaded in Unknown on line 0 [24-May-2018 15:09:01欧洲/柏林] PHP警告:模块“ PDO”已在第0行的“未知”中加载
[24-May-2018 15:39:01 Europe/Berlin] PHP Warning: Module 'PDO' already loaded in Unknown on line 0 [24-May-2018 15:39:01欧洲/柏林] PHP警告:模块“ PDO”已在第0行的“未知”中加载
[24-May-2018 16:04:24 Europe/Berlin] PHP Warning: Module 'PDO' already loaded in Unknown on line 0 [24-May-2018 16:04:24欧洲/柏林] PHP警告:模块“ PDO”已在第0行的“未知”中加载
[24-May-2018 16:09:01 Europe/Berlin] PHP Warning: Module 'PDO' already loaded in Unknown on line 0 [24-May-2018 16:09:01欧洲/柏林] PHP警告:模块“ PDO”已在第0行的“未知”中加载

if someone can help me.. :-) 如果有人可以帮助我.. :-)

Thank you ! 谢谢 !

EDIT : This is my journalctl when apache crashs journalctl 编辑:这是我的journalctl,当apache崩溃journalctl时

Ok, finally i've found where was the problem. 好的,终于我找到了问题所在。

It was due to Certbot. 归功于Certbot。 I had 2 domains not used for a long time and the SSL certificates was expirated. 我有2个长时间未使用的域,并且SSL证书已过期。 I have remove these certificates and my apache is currently running for 1 day and 13 hours. 我已经删除了这些证书,并且我的apache目前运行了1天13个小时。

If this solution can help someone.. ;) 如果此解决方案可以帮助某人.. ;;)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM