网上资料大部分说只要设置php.ini 中的date.timezone = Asia/Shanghai 即可。但是在Php5.3版本下,这个方法并没有作用
解决办法:
根据错误提示 Warning: 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 the timezone 'UTC' for now, but please set date.timezone to select your timezone. in/usr/local/cacti/include/global_constants.phpon line166
[root@localhost install]# vim /usr/local/cacti/include/global_constants.php
根据提示,在166行加入了一下内容:
date_default_timezone_set('Asia/Shanghai');
页面即恢复正常
8、cacti安装完后就停留在登陆界面,输入默认的用户名密码登陆不进去!
centos5下-----信息不全 , 配置问题-----呵呵我也碰到同样的问题。我把解决办法写上来看能不能帮助同样问题的你。:)在login屏幕一直不能登录进去,输入admin密码admin后还会是停止在登录屏幕,要求输入用户和密码.百思不得其解,后面在cacti的官方论坛上找答案,发现有人有同样的问题,他有发apache的日志。突然一想,我也可以看看apache的日志。打开日志一看,发现了问题。查日志:[client 59.41.223.152] PHP Warning: Unknown(): open(/var/lib/php/session/sess_e7efb8dcf3a41b026edb7aecdd7b3404, O_RDWR) failed: Permission denied (13) in Unknown on line 0, referer: http://cacti.abc.com.cn/index.php[client 59.41.223.152] PHP Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0, referer: http://cacti.abc.com.cn/index.php原来是/var/lib/php/session 对当前运行apache的账户nobody无写权限。chmod 777 session 后。问题消失。