码迷,mamicode.com
首页 > Web开发 > 详细

php编译安装报错

时间:2018-06-08 18:05:59      阅读:244      评论:0      收藏:0      [点我收藏+]

标签: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 

 

php编译安装报错

标签:pdo   you   date   one   lock   lin   /usr   host   any   

原文地址:https://www.cnblogs.com/byfboke/p/9156874.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!