본문 바로가기

리눅스/Centos

CentOS 웹 페이지 안나올 때 조치방법 (apache)

멀쩡히 잘 쓰던 서버가 Glibc 업데이트 이후 Httpd 서버는 실행중인데 

어떤 원인인지는 몰라도 갑자기 Web Page가 뜨지 않는 증상이 발생했다.  

 

Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 mod_ssl/2.2.15 OpenSSL/1.0.1e-fips configured -- resuming normal operations
[Tue Oct 12 09:09:30 2021] [error] [client 192.168.0.179] PHP Warning:  phpinfo(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Factory' for 'Local time zone must be set--see zic manual page/0.0/no DST' instead in /var/www/html/phpinfo.php on line 4

 

httpd error 관련 로그를 확인 후 구글링 한 결과 

/etc/php.ini 

#date.timezone 주석 처리 되어있는것을 해제하고 아래와 같이 수정해서 복구 완료

date.timezone = Asia/Seoul