今天折腾的把PHP 5.3 给安装上来了.中间出了很多问题.
当安装好之后WP出现错误
Warning: strtotime() [function.strtotime]: 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 ‘Europe/Helsinki’ for ‘EEST/3.0/DST’ instead in /path/to/my/www/wp-includes/functions.php on line 35
Warning: date() [function.date]: 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 ‘Europe/Helsinki’ for ‘EEST/3.0/DST’ instead in /path/to/my/www/wp-includes/functions.php on line 43
Warning: strtotime() [function.strtotime]: 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 ‘Europe/Helsinki’ for ‘EEST/3.0/DST’ instead in /path/to/my/www/wp-includes/functions.php on line 35
Warning: date() [function.date]: 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 ‘Europe/Helsinki’ for ‘EEST/3.0/DST’ instead in /path/to/my/www/wp-includes/functions.php on line 43
这个是因为php5.3的新特性,需要知道你的时区.最简单的修复方法是在你的wp-config.php里面加上
date_default_timezone_set(‘Asia/Chongqing’);
另外一个方法是在php.ini 激活
date.timezone = “Asia/Chongqing”
另外就是memcache,建议重新安装下,因为目录已经有了变化
/usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/
一开始我还以为不能用了,后来重新安装了下就ok了
之前用5.3,还不错,不过安装5.3后,可以运行discuz,却不能安装,很郁闷,只能降级。。。另外,我是通过开启2个php的函数来解决你这些问题的,5.3下这些安装被默认关闭了
@Rey, 不知道DZ的7.1会不会针对php5.3推出更新版本
现在还不敢用5.3,因为目前有些程序要求我使用zend。。。zend对于新版本的php5.3来说有点不稳定