标签:pdo you date one lock lin /usr host any
关于timezone报错: It is not safe to rely on the system‘s timezone settings
报错:It is not safe to rely on the system‘s timezone settings
[root@localhost local]# php -i|grep pdo
PHP Warning: Unknown: 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 the timezone ‘UTC‘ for now, but please set date.timezone to select your timezone. in Unknown on line 0
解决方法:
[root@localhost local]# vim /etc/php.ini
找到date.timezone,修改为 date.timezone = PRC,后保存。
[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,中华人民共和国,也就是日期使用中国的时区。
[root@localhost pdo_mysql]# /usr/bin/phpize
Can‘t find PHP headers in /usr/include/php
The php-devel package is required for use of this command.
解决方法:
yum install php-devel -y
标签:pdo you date one lock lin /usr host any
原文地址:https://www.cnblogs.com/byfboke/p/9156874.html