执行phpinfo();时提示错误

在2003vps上搭建wimp时出如下错误:

执行phpinfo();时提示:

Warning: phpinfo() [function.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 ‘America/New_York’ for ‘EDT/-4.0/DST’ instead in /home/lvyaozu/nginxroot/phpinfo.php on line 2

解决办法:

vi /usr/local/php/etc/php.ini

找到date.timezone =

设置为date.timezone = Asia/Chongqing

此条目是由 malu8 发表在 未分类 分类目录的。将固定链接加入收藏夹。

评论已关闭。