[Sat Jan 16 09:24:34.513897 2021] [php7:error] [pid 25983] [client *.155.205.108:53800] script '/var/www/html/index.php' not found or unable to stat
약 13:24:00 경 서버가 접속되지 않기 시작했구요.. 로그는 아래와 같습니다.
[Sat Jan 16 16:49:32.480959 2021] [mpm_prefork:notice] [pid 1042] AH00170: caught SIGWINCH, shutting down gracefully
[Sat Jan 16 16:52:35.262814 2021] [suexec:notice] [pid 1045] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using *.com. Set the 'ServerName' directive globally to suppress this message
[Sat Jan 16 16:52:35.324946 2021] [lbmethod_heartbeat:notice] [pid 1045] AH02282: No slotmem from mod_heartmonitor
[Sat Jan 16 16:52:35.593513 2021] [mpm_prefork:notice] [pid 1045] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.33 configured -- resuming normal operations
[Sat Jan 16 16:52:35.593543 2021] [core:notice] [pid 1045] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
약 1주일단위로 서버가 접속이 안되서 환장하겠는데 또 ssh 로 접속은 되서 httpd만 문제가 있는거같아요.
재부팅하면 또 잘작동합니다.
전문가님들 조언 듣고 싶습니다.
apache 2.4.6
php 7.2.3x
mariadb 사용중입니다. db는 문제 없는거같습니다.
설치 하신 하드가 SSD 이거나 Hard Drive에 Bad Sector 가 있을까요 ??
HP나 Dell 은 하드나 SSD에 Bad 가 발생되면..
Notice가 확실하게 오고..
Boot 과정에서 알게 됩니다..
잘 돌다가 문제가 되는 경우인데... 하드에 대한 신뢰성을 확보하세요..
접속 안 되었을떄 ssh로 들어가서 정적파일 올려서 httpd 살아있나 시험해보시고, db서버에 쿼리 수동으로 날려서 작동 여하도 시험해보시고, php도 시험해보세요
각각의 항목을 시험해서 어느게 죽었는지 확인하는게 가장 먼저입니다
여기 답변에 maxclient 랑 관련 있을수도 있다고 하네요 ..
그리고 아파치는 서비스로 실행하시는건지 ? 두번째 답변 보면 터미널에서 실행하는 건지에 따라서도
관계가 있을수도 있나보네요 ..
maxClient 한번 체크 해보세요 .
아울러 동 시간대의 message 로그도 필요합니다.