开源人linux系统运维培训中心

PHP Warning: phpinfo(): It is not safe to rely on the system’s timezone settings.

时间 : 17-03-27 栏目 : lamp环境 作者 : admin 评论 : 0 点击 : 388 次

当我们部署完毕lamp环境,进入到web默认目录,编写phpinfo文件,浏览器访问phpinfo检测文件,nginx或者apache的error日志文件中会有如下记录:

 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...

解决办法如下:

找到php.ini文件里面查找date.timezone
设置成这个就可以了date.timezone =Asia/Chongqing

20170327181251

本文标签

除非注明,文章均为( admin )原创,转载请保留链接: http://www.bdkyr.com/2368.html

PHP Warning: phpinfo(): It is not safe to rely on the system’s timezone settings.:等您坐沙发呢!

发表评论

8 + 9 = ?


0