php编译安装5.3.2时区错误解决方法
2010-11-26 21:04
651 查看
安装系统的时候未去掉UTC勾,在安装php5.3.2出现php.info里面:
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 'Asia/Chongqing' for 'CST/8.0/no DST
解决如下:
在php.ini查找
只要在php.ini里面修改date.timezone的参数即可:
1.#将date.timezone加上Asia/Shanghai
2.date.timezone="Asia/Shanghai"
然后重启appache服务器。
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 'Asia/Chongqing' for 'CST/8.0/no DST
解决如下:
在php.ini查找
只要在php.ini里面修改date.timezone的参数即可:
1.#将date.timezone加上Asia/Shanghai
2.date.timezone="Asia/Shanghai"
然后重启appache服务器。
相关文章推荐
- PHP编译安装中遇到的两个错误和解决方法
- php编译安装常见错误大全和解决方法
- PHP源码包编译安装错误及解决方法汇总
- 手动编译安装PHP遇到错误以及解决方法记录
- PHP 5.3.10 编译安装时出现 undefined reference to `libiconv' 错误的解决方法
- PHP 编译安装时出现 undefined reference to `libiconv' 错误的解决方法
- php编译安装常见错误大全和解决方法
- PHP编译安装中遇到的两个错误和解决方法
- PHP 5.3.10 编译安装时出现 undefined reference to `libiconv' 错误的解决方法
- linux系统安装php时编译php5.5.0出现“set --enable-opcache=no ”错误的解决办法
- 编译安装php及编译安装mysql常见错误总结及解决办法 网上找的
- 手工编译安装php后,重启apache时,libphp5.so: cannot restore segment prot after reloc: Permission denied 错误的解决办法
- php安装 出现Sorry, I cannot run apxs. ***错误解决方法
- 已解决:好用的集成PHP环境 一键安装包PHPNow--Win7下安装phpnow的方法出现[ Apache_pn ] 错误的解决 !(亲自测试通过)
- glib-2.28.6 的编译和安装 以及错误的解决方法
- PHP编译安装时常见错误解决办法
- Linux 安装编译PHP出现的问题及解决方法
- 安装ipvsadm 用make编译出现错误解决方法
- PHP编译过程中常见错误信息的解决方法
- PHP 安装memcache后,使用时遇到的错误 解决方法