
제목에 꽤 나와있네요. 제가 생각할 수 있는 모든 것을 시도했지만 Apache2는 1분 3초마다 실패 없이 다시 시작합니다. 다시 시작할 때마다 클라이언트가 연결할 수 없고 Chrome에서 "이 사이트에 연결할 수 없습니다."라는 메시지가 표시되기 때문에 정상적인 다시 시작을 수행하지 않습니다.
이는 Ubuntu 16.04 이미지를 사용하여 Linode에서 호스팅되는 VPS에서 발생합니다. 내가 아는 한 모든 것이 기본값으로 설정되었습니다. (사이트를 물려받았는데 이 이상한 문제를 해결하려고 노력 중입니다.)
아파치는 버전 2.4.18입니다.
PHP는 버전 7.0.30입니다.
사이트에는 많은 트래픽이 발생하지 않습니다(아마도 월 1,000회 조회). 따라서 트래픽으로 인해 이러한 현상이 발생해서는 안 됩니다.
다음은 Apache2 error.log에서 표시되는 로그입니다.
[Mon Aug 27 23:04:56.015029 2018] [core:notice] [pid 32672] AH00094: Command line: '/usr/sbin/apache2'
[Mon Aug 27 23:05:56.492903 2018] [mpm_prefork:notice] [pid 32672] AH00169: caught SIGTERM, shutting down
[Mon Aug 27 23:05:58.000463 2018] [:notice] [pid 32730] ModSecurity for Apache/2.9.0 (http://www.modsecurity.org/) configured.
[Mon Aug 27 23:05:58.001156 2018] [:notice] [pid 32730] ModSecurity: APR compiled version="1.5.1"; loaded version="1.5.2"
[Mon Aug 27 23:05:58.001857 2018] [:warn] [pid 32730] ModSecurity: Loaded APR do not match with compiled!
[Mon Aug 27 23:05:58.001959 2018] [:notice] [pid 32730] ModSecurity: PCRE compiled version="8.35 "; loaded version="8.38 2015-11-23"
[Mon Aug 27 23:05:58.002041 2018] [:warn] [pid 32730] ModSecurity: Loaded PCRE do not match with compiled!
[Mon Aug 27 23:05:58.002155 2018] [:notice] [pid 32730] ModSecurity: LUA compiled version="Lua 5.1"
[Mon Aug 27 23:05:58.002230 2018] [:notice] [pid 32730] ModSecurity: YAJL compiled version="2.1.0"
[Mon Aug 27 23:05:58.002300 2018] [:notice] [pid 32730] ModSecurity: LIBXML compiled version="2.9.2"
[Mon Aug 27 23:05:58.002460 2018] [:notice] [pid 32730] ModSecurity: StatusEngine call: "2.9.0,Apache/2.4.18 (Ubuntu),1.5.1/1.5.2,8.35/8.38 2015-11-23,Lua 5.1,2.9.2,<removed_for_SO>"
[Mon Aug 27 23:05:58.060493 2018] [:notice] [pid 32730] ModSecurity: StatusEngine call successfully sent. For more information visit: http://status.modsecurity.org/
[Mon Aug 27 23:05:58.105989 2018] [:notice] [pid 32734] FastCGI: process manager initialized (pid 32734)
[Mon Aug 27 23:05:59.016019 2018] [mpm_prefork:notice] [pid 32731] AH00163: Apache/2.4.18 (Ubuntu) mod_fastcgi/mod_fastcgi-SNAP-0910052141 OpenSSL/1.0.2g configured -- resuming normal operations
[Mon Aug 27 23:05:59.017563 2018] [core:notice] [pid 32731] AH00094: Command line: '/usr/sbin/apache2'
[Mon Aug 27 23:06:59.489457 2018] [mpm_prefork:notice] [pid 32731] AH00169: caught SIGTERM, shutting down
APR과 PCRE의 버전이 동일하지 않은 문제가 있지만 다른 스레드에서 이것이 내가 보고 있는 문제의 원인이 되어서는 안 된다는 내용을 읽었습니다.
이 문제를 해결하는 데 도움이 되도록 설정할 수 있는 다른 것이 있다면 감사하겠습니다. 또는 다른 사람이 비슷한 것을 발견했다면 도움이 될 것입니다.
어떤 프로세스가 실행되고 있는지 확인하기 위해 이미 HTOP를 살펴보았습니다. 거기에는 특별한 것이 없습니다. 다시 시작 명령을 본 후에 CPU 스파이크가 표시됩니다(아파치가 다시 시작되는 경우 의미가 있습니다).
우리는 logrotate를 설치했지만(내가 본 또 다른 일반적인 것) logrotate는 매주 실행되도록 설정되어 있으므로 이것이 이 문제의 원인이라고 생각하지 않습니다.
우리는 사이트에서도 WordPress를 호스팅하고 있습니다.
여기에 도움이 될 만한 다른 내용을 추가할 수 있으면 알려주시기 바랍니다.
cronjob도 확인했습니다. cronjob이 없습니다.