Cacti error on Debian install

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Energie
Posts: 1
Joined: Wed Apr 23, 2008 12:26 am

Cacti error on Debian install

Post by Energie »

I followed the cacti document exactly and install seemed to go fine.


When I browse to http://localhost/cacti, I am getting the following error in browser

Fatal error: Call to undefined function mysql_pconnect() in /usr/share/php/adodb/drivers/adodb-mysql.inc.php on line 376

Kindly advise on solutions
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

id you install mysql and php-mysql?
Reinhard
smmoskwa
Posts: 3
Joined: Thu May 29, 2008 5:18 pm
Location: Morris, Illinois, USA

Fatal error: Call to undefined function mysql_pconnect() in

Post by smmoskwa »

Entire error: Fatal error: Call to undefined function mysql_pconnect() in /usr/share/php/adodb/drivers/adodb-mysql.inc.php on line 376. I am having the same problem as Energie. I have installed both mysql and php-mysql (I'm using mysql 5.0 and php5 and apache2). I did get an error message on the install: libphp.adodb is now in usr/shared/php/adodb - I'm trying hard to follow the directions in the users manual, but they don't match what really happens. There is no hpptd, it's apache2. All the files referenced are in slightly different places than the manual says. Also, I cannot find the config.php anywhere. I did a locate and it wasn't found. I did get into the mysqladmin and there is a cacti database present and there is a user named cacti.
kanada
Cacti User
Posts: 137
Joined: Sun Aug 28, 2005 12:51 pm

Re: Fatal error: Call to undefined function mysql_pconnect()

Post by kanada »

smmoskwa wrote:Entire error: Fatal error: Call to undefined function mysql_pconnect() in /usr/share/php/adodb/drivers/adodb-mysql.inc.php on line 376. I am having the same problem as Energie. I have installed both mysql and php-mysql (I'm using mysql 5.0 and php5 and apache2). I did get an error message on the install: libphp.adodb is now in usr/shared/php/adodb - I'm trying hard to follow the directions in the users manual, but they don't match what really happens. There is no hpptd, it's apache2. All the files referenced are in slightly different places than the manual says. Also, I cannot find the config.php anywhere. I did a locate and it wasn't found. I did get into the mysqladmin and there is a cacti database present and there is a user named cacti.
First: To locate config.php do: updatedb in your linux console.
Second: Manual directly telling you where you can find config.php, (cacti/include/config.php).
Apache2 is too httpd server :wink:
After install php-mysql please reload your apache server.

Regards,
Alex.
smmoskwa
Posts: 3
Joined: Thu May 29, 2008 5:18 pm
Location: Morris, Illinois, USA

sql connect error message

Post by smmoskwa »

Thank you for the input. I am out of town for the weekend. I will try this Monday evening when I return and I will post a reply with the results. I am a relative linux beginner and I appreciate the help.
nelmo
Posts: 3
Joined: Mon Jun 02, 2008 3:44 am

Post by nelmo »

Hello,

I have read this tread because i have same error.

I have locate my /usr/share/cacti/site/include/config.php but i have not understood the manual directory.

Please, it's possible to explain this at me ?


(i am french, sorry for language).

Thanks You

nelmo
User avatar
cyrill
Cacti User
Posts: 271
Joined: Fri Jan 25, 2008 8:43 am
Location: California - USA

Post by cyrill »

salut nelmo !

Comment as-tu fais pour installer cacti ? tu as fait avec apt-get install cacti ? Si oui c'est une mauvaise idée.
Cacti 0.8.7b

-> Architecture plugin
-> Thold plugin
-> Monitor plugin
-> Weathermap plugin
nelmo
Posts: 3
Joined: Mon Jun 02, 2008 3:44 am

Post by nelmo »

arf, oui :(

Sinon, aurais-tu un tutos qui m'aiderait à l'installer autrement ?

Merci à toi de te pencher sur le sujet :)
User avatar
cyrill
Cacti User
Posts: 271
Joined: Fri Jan 25, 2008 8:43 am
Location: California - USA

Post by cyrill »

ben j'ai fais un truc si tu veux. il faudrai que je l'adapte car c'est un manuel pour mon entreprise mais je te le donne si tu veux.
Cacti 0.8.7b

-> Architecture plugin
-> Thold plugin
-> Monitor plugin
-> Weathermap plugin
nelmo
Posts: 3
Joined: Mon Jun 02, 2008 3:44 am

Post by nelmo »

Si cela peut m'aider :)

Adresse mail : c-mallet@hotmail.fr :)

Je vais potasser ca et je pense que je vais m'en sortir !


Cordialement,

nelmo
User avatar
cyrill
Cacti User
Posts: 271
Joined: Fri Jan 25, 2008 8:43 am
Location: California - USA

Post by cyrill »

ok. je vais t'envoyer cela dès que possible
Cacti 0.8.7b

-> Architecture plugin
-> Thold plugin
-> Monitor plugin
-> Weathermap plugin
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Not wanting to disrupt your french conversation. But I fear that the problem lies with using an "adodb" version _not_ supplied by cacti. But cacti requires it's own adodb. While this seems uncommon to you, it's a fact, ATM
Reinhard
smmoskwa
Posts: 3
Joined: Thu May 29, 2008 5:18 pm
Location: Morris, Illinois, USA

same error - Call to undefined function mysql_pconnect...

Post by smmoskwa »

I did the updatedb command and then the locate was able to find my config.php file, which I updated with the appropriate database access information. I thought maybe the problem was naming so I made sure the database user and the system system were both cactiuser. I'm able to go into the query browser as cactiuser and get into the database and run queries; however, I continue to get the unable to connect message when I enter http://localhost/cacti in the IceWeasel browser. Is there something else I can do to isolate the problem or to "rule out" possible causes? I would be happy to attach my various config files if someone can take a look.
Alex paris
Posts: 23
Joined: Thu Jun 05, 2008 8:10 am

Post by Alex paris »

Salut, cyrill. Tu peux me le donner,aussi, s.t.p? Car j'ai installé Cacti en utilisant "apt-get install cacti", mais il y a beaucoup de problème. Donc, j'aimerais bien avoir une autre façon d'installer Cacti. Je t'en remercie par avance!!!

Mon msn: fourkings82@gmail.com
User avatar
cyrill
Cacti User
Posts: 271
Joined: Fri Jan 25, 2008 8:43 am
Location: California - USA

Post by cyrill »

Alex paris wrote:Salut, cyrill. Tu peux me le donner,aussi, s.t.p? Car j'ai installé Cacti en utilisant "apt-get install cacti", mais il y a beaucoup de problème. Donc, j'aimerais bien avoir une autre façon d'installer Cacti. Je t'en remercie par avance!!!

Mon msn: fourkings82@gmail.com
Salut ! Ecoute il n'est pas encore adapté car je fais sa pour un travail d'entreprise mais si tu arrive a patienter deux semaines je pourrais te le donner. C'est très déconseillé de l'installer avec Aptitude car il t'installe toutes les dépendances mais il configure également apache en créant des hôtes virtuels et des choses de ce type et sa peut te poser quelques problèmes si tu dois appliquer des patchs ou bien des mises à jour surtout.
Cacti 0.8.7b

-> Architecture plugin
-> Thold plugin
-> Monitor plugin
-> Weathermap plugin
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests