About TimeZone Error: It is isn't safe to rely on the system ' s timezone settings
Error: It is not safe to rely on the system ' s timezone settings
[Email protected] local]# Php-i|grep PDO
PHP Warning:Unknown:It is not safe for rely on the system ' s timezone settings. You is *required* to use the Date.timezone setting or the Date_default_timezone_set () function. In case you used any of those methods and you is still getting this warning, your most likely misspelled the timezone Iden Tifier. We selected the timezone ' UTC ' for now, but please set Date.timezone to select your timezone. In Unknown on line 0
Workaround:
[Email protected] local]# Vim/etc/php.ini
Find Date.timezone, modify to Date.timezone = PRC, save after.
[Date]
; Defines the default timezone used by the date functions
; Http://php.net/date.timezone
Date.timezone = PRC #注释取消掉, Date.timezone = PRC. Prc,people ' s Republic of China, PRC, that is, dates use Chinese time zones.
[Email protected] pdo_mysql]#/usr/bin/phpize
Can ' t find PHP headers in/usr/include/php
The Php-devel package was required for use of this command.
Workaround:
Yum Install Php-devel-y
PHP Compiler installation Error