LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-06-2006, 11:21 AM   #1
Braynid
Member
 
Registered: May 2006
Location: Romania
Distribution: CentOS
Posts: 140

Rep: Reputation: 15
Exclamation Some cacti/mysql problems


Hello, i have this Ubuntu RC 6.06 and i have installed cacti on it. The problem is that when i try to create a graph i get this error message. Can you help please?

Quote:
Notice: Only variable references should be returned by reference in /usr/share/adodb/adodb.inc.php on line 853

Notice: Only variable references should be returned by reference in /usr/share/adodb/adodb.inc.php on line 853

Warning: Cannot modify header information - headers already sent by (output started at /usr/share/adodb/adodb.inc.php:853) in /usr/share/cacti/graphs_new.php on line 84
I have no idea what to do with them. I've looked up the given lines in the given files but they don't tell me much. I suppose it's some problem with my mysql configuration...
 
Old 10-06-2006, 11:30 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
this is a php generic message, not cacti specific so any hits on google for that error should be ok: http://codex.gallery2.org/index.php/...t.27s_wrong.3F

and of course the third message is there because of the fact that the other error messages have been sent. as such it can't send more headers... that'll disappear of it's own accord.

btw. i'm not a huge cacti fan... much prefer opennms all round...
 
Old 10-06-2006, 12:35 PM   #3
Braynid
Member
 
Registered: May 2006
Location: Romania
Distribution: CentOS
Posts: 140

Original Poster
Rep: Reputation: 15
Well i've googled it some more and i only get references for 'codex gallery2' that i don't use, and the advice to update 'zend_optimizer' that again i don't use. Ca you be more specific please?
About opennms, you say it's better then cacti?
 
Old 10-06-2006, 01:39 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
oh yeah, i misread that link, i thought they were offering PHP config changes... my bad.

right so i'm stuck having to fix this now right?

appears that this would be a php 4.4 issue, and you can either upgrade to 5.x, downgrade to 4.3 or simply make php ignore these notices and not screw everything up. seems that this is done by adding a line saying
Code:
error_reporting = E_ERROR | E_WARNING | E_PARSE
i.e. ignore E_NOTICE's which is what you have...
 
Old 10-06-2006, 01:49 PM   #5
ghight
Member
 
Registered: Jan 2003
Location: Indiana
Distribution: Centos, RedHat Enterprise, Slackware
Posts: 524

Rep: Reputation: 30
First off opennms is probably way overkill for anything but the largest setups.

Second, go to the cacti website and get the tarball. It's MUCH easier to install. I didn't get y ou particular message, but I did get several others with the Ubuntu .deb.
 
Old 10-07-2006, 05:01 AM   #6
Braynid
Member
 
Registered: May 2006
Location: Romania
Distribution: CentOS
Posts: 140

Original Poster
Rep: Reputation: 15
@acid_kewpie: thanks mate for the support! One question, where should i add the given line? I've tried to put it in '/etc/suphp.conf' but i still get the error. By the way if i upgrade to 5.x all my old databases are gone?
@ghight I've tried that but i have to compile some other .tar.gz packages and they don't compile right so...
 
Old 10-07-2006, 02:28 PM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
ahh crap never said did i..? add it to php.ini, normally in /etc i think
 
Old 10-08-2006, 01:27 AM   #8
Braynid
Member
 
Registered: May 2006
Location: Romania
Distribution: CentOS
Posts: 140

Original Poster
Rep: Reputation: 15
Ok, i've done some work and now the configuration of my server is:

Code:
Apache/2.0.55 (Ubuntu) PHP/5.1.2 mod_ssl/2.0.55 OpenSSL/0.9.8a
I still have the error so i've added the code in '/etc/php5/apache2/php.ini' the same thing. i've tried to put it in '/etc/php5/cgi/php.ini' to and still nothing.
So... it's quite strange.
 
Old 10-09-2006, 01:43 AM   #9
Braynid
Member
 
Registered: May 2006
Location: Romania
Distribution: CentOS
Posts: 140

Original Poster
Rep: Reputation: 15
After some research i have this question. Should i remove cacti, reinstall php and then reinstall cacti ? Would this work? And i don't want to lose my database... so what's to be done?
 
Old 10-12-2006, 01:08 PM   #10
ghight
Member
 
Registered: Jan 2003
Location: Indiana
Distribution: Centos, RedHat Enterprise, Slackware
Posts: 524

Rep: Reputation: 30
Quote:
Originally Posted by Braynid
@ghight I've tried that but i have to compile some other .tar.gz packages and they don't compile right so...
You shouldn't compile anything. Install the prereq packages as required then unpack the cacti tarball to the webserver root. Pretty simple really.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with MySQL on SuSE: Can't Connect (/var/lib/mysql/mysql.sock) neocookie Linux - Software 8 02-08-2008 12:48 AM
Cacti Problem mblames Fedora 3 08-20-2007 05:42 AM
Cacti Installation Problems with include/config.php tovythomas Linux - Software 2 03-13-2007 07:49 PM
Cacti problem #2 Braynid Linux - Newbie 2 10-05-2006 11:32 AM
Problem with cacti. ARCIS_house Linux - Newbie 1 05-26-2006 03:20 AM


All times are GMT -5. The time now is 04:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration