设为首页收藏本站

LinuxTone | 运维专家网论坛 - 最棒的Linux运维与开源架构技术交流社区!

 找回密码
 注册

QQ登录

只需一步,快速开始

#公告#抱歉,网站将关闭,不再开放。由于PC时代已远逝 。在这个后移动互联网时代,我们继续携手前行,保持对技术的热情。共同构建linuxtone知识星球欢迎加入,一起讨论技术、招聘人才、分享资源。请新老linuxtone人 扫码移步到 知识星球:linuxtone

学习是一种信仰!分享是一种快乐!能力= 心态 * 沟通 * 知识 (你的每一天需要正能量!)

 网站的发展需要你贡献一份力量!希望你能每天坚持看贴1小时,并回答网友的问题!祝你在浏览论坛的过程中取得进步!谢谢!linuxtone加油!大家加油! 友情提示: 你今天学习了吗?你今天进步了吗?少一点抱怨!多一点进步!Life is short ! Why not linuxtone ?  

网站的发展、感谢每位坛友的努力!

查看: 3486|回复: 10

安装cacti,在浏览器中报错 [复制链接]

Rank: 8Rank: 8

签到
142
注册时间
2012-8-21
最后登录
2015-5-19
在线时间
28 小时
阅读权限
90
积分
15679
帖子
21
主题
1
精华
0
UID
34934
发表于 2012-12-26 16:35:38 |显示全部楼层
http://10.33.23.200/install
Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/apache2/htdocs/lib/adodb/adodb.inc.php on line 866

Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/apache2/htdocs/lib/adodb/adodb.inc.php on line 872

Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/apache2/htdocs/lib/adodb/adodb.inc.php on line 1183

Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/apache2/htdocs/lib/adodb/adodb.inc.php on line 1961

Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/apache2/htdocs/lib/adodb/adodb.inc.php on line 3027

Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/apache2/htdocs/lib/adodb/adodb.inc.php on line 3592

Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/apache2/htdocs/lib/adodb/adodb.inc.php on line 3667

Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/apache2/htdocs/lib/adodb/adodb.inc.php on line 3687

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/include/global_constants.php on line 156

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 'Asia/Chongqing' for 'CST/8.0/no DST' instead in /usr/local/apache2/htdocs/include/global_constants.php on line 156

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/include/global_constants.php on line 157

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 'Asia/Chongqing' for 'CST/8.0/no DST' instead in /usr/local/apache2/htdocs/include/global_constants.php on line 157

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/include/global_constants.php on line 158

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 'Asia/Chongqing' for 'CST/8.0/no DST' instead in /usr/local/apache2/htdocs/include/global_constants.php on line 158

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/include/global_constants.php on line 159

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 'Asia/Chongqing' for 'CST/8.0/no DST' instead in /usr/local/apache2/htdocs/include/global_constants.php on line 159

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/include/global_constants.php on line 160

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 'Asia/Chongqing' for 'CST/8.0/no DST' instead in /usr/local/apache2/htdocs/include/global_constants.php on line 160

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/include/global_constants.php on line 161

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 'Asia/Chongqing' for 'CST/8.0/no DST' instead in /usr/local/apache2/htdocs/include/global_constants.php on line 161

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/include/global_constants.php on line 162

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 'Asia/Chongqing' for 'CST/8.0/no DST' instead in /usr/local/apache2/htdocs/include/global_constants.php on line 162

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/include/global_arrays.php on line 621

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 'Asia/Chongqing' for 'CST/8.0/no DST' instead in /usr/local/apache2/htdocs/include/global_arrays.php on line 621

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/include/global_arrays.php on line 622

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 'Asia/Chongqing' for 'CST/8.0/no DST' instead in /usr/local/apache2/htdocs/include/global_arrays.php on line 622

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/include/global_arrays.php on line 623

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 'Asia/Chongqing' for 'CST/8.0/no DST' instead in /usr/local/apache2/htdocs/include/global_arrays.php on line 623

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/include/global_arrays.php on line 624

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 'Asia/Chongqing' for 'CST/8.0/no DST' instead in /usr/local/apache2/htdocs/include/global_arrays.php on line 624

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/include/global_arrays.php on line 625

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 'Asia/Chongqing' for 'CST/8.0/no DST' instead in /usr/local/apache2/htdocs/include/global_arrays.php on line 625

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/include/global_arrays.php on line 626

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 'Asia/Chongqing' for 'CST/8.0/no DST' instead in /usr/local/apache2/htdocs/include/global_arrays.php on line 626

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/include/global_arrays.php on line 627

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 'Asia/Chongqing' for 'CST/8.0/no DST' instead in /usr/local/apache2/htdocs/include/global_arrays.php on line 627

http://10.33.23.200/cacti
Warning: include(/usr/local/apache2/htdocs/cacti/include/config.php) [function.include]: failed to open stream: No such file or directory in /usr/local/apache2/htdocs/cacti/include/global.php on line 62

Warning: include() [function.include]: Failed opening '/usr/local/apache2/htdocs/cacti/include/config.php' for inclusion (include_path='.:/usr/local/php5/lib/php') in /usr/local/apache2/htdocs/cacti/include/global.php on line 62

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/apache2/htdocs/cacti/include/global.php:62) in /usr/local/apache2/htdocs/cacti/include/global.php on line 136

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/apache2/htdocs/cacti/include/global.php:62) in /usr/local/apache2/htdocs/cacti/include/global.php on line 137

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/apache2/htdocs/cacti/include/global.php:62) in /usr/local/apache2/htdocs/cacti/include/global.php on line 138

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/apache2/htdocs/cacti/include/global.php:62) in /usr/local/apache2/htdocs/cacti/include/global.php on line 139

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/apache2/htdocs/cacti/include/global.php:62) in /usr/local/apache2/htdocs/cacti/include/global.php on line 140

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/apache2/htdocs/cacti/include/global.php:62) in /usr/local/apache2/htdocs/cacti/include/global.php on line 142

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /usr/local/apache2/htdocs/cacti/include/global.php:62) in /usr/local/apache2/htdocs/cacti/include/global.php on line 146

Warning: include(/usr/local/apache2/htdocs/cacti/lib/adodb/adodb.inc.php) [function.include]: failed to open stream: No such file or directory in /usr/local/apache2/htdocs/cacti/include/global.php on line 203

Warning: include() [function.include]: Failed opening '/usr/local/apache2/htdocs/cacti/lib/adodb/adodb.inc.php' for inclusion (include_path='.:/usr/local/php5/lib/php') in /usr/local/apache2/htdocs/cacti/include/global.php on line 203

Warning: include(/usr/local/apache2/htdocs/cacti/lib/database.php) [function.include]: failed to open stream: No such file or directory in /usr/local/apache2/htdocs/cacti/include/global.php on line 204

Warning: include() [function.include]: Failed opening '/usr/local/apache2/htdocs/cacti/lib/database.php' for inclusion (include_path='.:/usr/local/php5/lib/php') in /usr/local/apache2/htdocs/cacti/include/global.php on line 204

Fatal error: Call to undefined function db_connect_real() in /usr/local/apache2/htdocs/cacti/include/global.php on line 207

我的php版本是 php-5.3.8
cacti版本是cacti-0.8.7e
跪求大神帮帮我

Rank: 8Rank: 8

注册时间
2010-9-19
最后登录
2019-7-22
在线时间
2934 小时
阅读权限
90
积分
28659
帖子
1325
主题
1149
精华
0
UID
10420
发表于 2012-12-26 16:58:08 |显示全部楼层
就这也是元老。。。。无语

要不你就贴你的安装步骤  要不你就好好看看别人写的 http://www.21andy.com/blog/20100204/1615.html

使用道具 举报

Rank: 8Rank: 8

注册时间
2012-8-21
最后登录
2015-5-19
在线时间
28 小时
阅读权限
90
积分
15679
帖子
21
主题
1
精华
0
UID
34934
发表于 2012-12-26 17:10:14 |显示全部楼层
哥,你看看,这个是cacti与php之间版本不兼容!~

使用道具 举报

Rank: 8Rank: 8

注册时间
2012-8-21
最后登录
2015-5-19
在线时间
28 小时
阅读权限
90
积分
15679
帖子
21
主题
1
精华
0
UID
34934
发表于 2012-12-28 08:54:32 |显示全部楼层
hn_lwdian 发表于 2012-12-26 16:58
就这也是元老。。。。无语

要不你就贴你的安装步骤  要不你就好好看看别人写的 http://www.21andy.com/blo ...

哥,你看看,这个是cacti与php之间版本不兼容!~

使用道具 举报

Rank: 6Rank: 6

注册时间
2012-2-1
最后登录
2014-9-3
在线时间
43 小时
阅读权限
70
积分
9210
帖子
20
主题
1
精华
0
UID
17551
发表于 2013-1-18 17:32:38 |显示全部楼层
注意:
1、include/config.php
2、php.ini里边添加data.timezone="Asia/Shanghai",重启apache或nginx

使用道具 举报

Rank: 6Rank: 6

注册时间
2012-2-1
最后登录
2014-9-3
在线时间
43 小时
阅读权限
70
积分
9210
帖子
20
主题
1
精华
0
UID
17551
发表于 2013-1-18 17:36:35 |显示全部楼层
config.php里边主要有两个地方:
1、$url_path = "";这个引号里边是你的cacti的安装目录,看好,写对,如果你apache的配置文件里配置的路径直接写到cacti里边的话,那这个地方就留空,如果不是,那就加上对应的cacti路径
2、$database_hostname = "127.0.0.1";数据库的配置,如果1改了以后还不行,尝试把这个位置的localhost换成lo的地址,这个和hosts有关

使用道具 举报

Rank: 6Rank: 6

注册时间
2012-2-1
最后登录
2014-9-3
在线时间
43 小时
阅读权限
70
积分
9210
帖子
20
主题
1
精华
0
UID
17551
发表于 2013-1-18 17:39:08 |显示全部楼层
其他的配置文件设置的还有问题,好好检查一下。
这个版本建议你最好去打下补丁,方法在cacti的官网上有,www.cacti.net

使用道具 举报

Rank: 8Rank: 8

注册时间
2012-9-3
最后登录
2015-9-18
在线时间
57 小时
阅读权限
90
积分
15753
帖子
97
主题
1
精华
0
UID
35196
发表于 2013-1-19 17:35:31 |显示全部楼层
首先排除的思路
看提示呀
然后在看你的日子呀
把你的环境介绍一下撒~~~

使用道具 举报

Rank: 8Rank: 8

注册时间
2012-8-21
最后登录
2015-5-19
在线时间
28 小时
阅读权限
90
积分
15679
帖子
21
主题
1
精华
0
UID
34934
发表于 2013-1-22 17:57:36 |显示全部楼层
星辰 发表于 2013-1-18 17:32
注意:
1、include/config.php
2、php.ini里边添加data.timezone="Asia/Shanghai",重启apache或nginx ...

不好意思,前些日子家里出了些事情,回家了一下

使用道具 举报

Rank: 8Rank: 8

注册时间
2012-8-21
最后登录
2015-5-19
在线时间
28 小时
阅读权限
90
积分
15679
帖子
21
主题
1
精华
0
UID
34934
发表于 2013-1-22 17:58:25 |显示全部楼层
星辰 发表于 2013-1-18 17:36
config.php里边主要有两个地方:
1、$url_path = "";这个引号里边是你的cacti的安装目录,看好,写对,如果 ...

我去试试,谢谢。如果有问题,我在向你 请教

使用道具 举报

Rank: 8Rank: 8

注册时间
2012-8-21
最后登录
2015-5-19
在线时间
28 小时
阅读权限
90
积分
15679
帖子
21
主题
1
精华
0
UID
34934
发表于 2013-1-22 17:58:57 |显示全部楼层
angerdevil 发表于 2013-1-19 17:35
首先排除的思路
看提示呀
然后在看你的日子呀

不好意思,前些日子家里出了些事情,回家了一下

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

IT运维专家网感谢您的支持

合作联系: QQ:67888954/MSN:cnseek@msn.com/mail:netseek@linuxtone.org

Archiver|手机版|感谢所有关心和支持过LinuxTone的朋友们 转载本站内容请注明原作者名及出处 ( 京ICP备08103151 )   |

GMT+8, 2020-4-5 07:54 , Processed in 0.026332 second(s), 10 queries , Apc On.

Powered by Discuz! X2 Licensed

© 2001-2011 Comsenz Inc.

回顶部