记:安装Cacti 0.8.7i出错

 使用php5.3环境;将Cacti 0.8.7i移动到web目录后,用浏览器打开,出现以下错误:

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 'Asia/Chongqing' for 'CST/8.0/no DST' instead in /usr/local/apache2/htdocs/cacti/include/global_constants.php on line 154
 
通过百度在php网上找到以下方法:
 
修改/etc/php.ini:
找到date.timezone,去掉前面的注释并
 
改为
 
date.timezone = PRC
 
 
date.timezone = Asia/Shanghai 

你可能感兴趣的:(PHP,cacti,休闲,date.timezone)