멀쩡히 잘 쓰던 서버가 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
'리눅스 > Centos' 카테고리의 다른 글
| 해외 IP 차단 스크립트 (0) | 2021.12.03 |
|---|---|
| bash shell 개발 후 watchdog로 돌리기 (0) | 2021.12.03 |
| CentOS 6 root 비밀번호 복구방법 (0) | 2021.12.03 |
| Centos 시스템 메일 초기화 방법 (0) | 2021.12.03 |
| Centos 6 사용자 계정에 root 권한 부여하는 방법 (0) | 2021.12.03 |