Fatal error: Call to undefined function mysql_pconnect() in

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

Moderators: Developers, Moderators

Post Reply
fredde
Posts: 8
Joined: Sat Apr 02, 2005 3:27 am

Fatal error: Call to undefined function mysql_pconnect() in

Post by fredde »

Problem since upgraded debian 4.0 to 5.0
php5
mysql5
apache2

i got the poller going ok but when i enter
http://myhost/cacti/
i get
Fatal error: Call to undefined function mysql_pconnect() in /usr/share/php/adodb/drivers/adodb-mysql.inc.php on line 382

not sure as to what info to send, this is php -m
[PHP Modules]
ADOdb
bcmath
bz2
calendar
ctype
date
dba
dom
exif
filter
ftp
gettext
hash
iconv
json
libxml
mbstring
mime_magic
mysql
mysqli
ncurses
openssl
pcntl
pcre
PDO
pdo_mysql
posix
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
zip
zlib

[Zend Modules]

ideas?

regards /Fredrik
khufure
Cacti User
Posts: 203
Joined: Wed Oct 24, 2007 5:47 pm
Location: San Francisco, CA
Contact:

Post by khufure »

fredde
Posts: 8
Joined: Sat Apr 02, 2005 3:27 am

Post by fredde »

thanks for the answer! but i allready tried that
only place i see mysql is in
"additional .ini files parsed"
/etc/php5/apache2/conf.d/adodb.ini, /etc/php5/apache2/conf.d/mysql.ini, /etc/php5/apache2/conf.d/mysqli.ini, /etc/php5/apache2/conf.d/pdo.ini, /etc/php5/apache2/conf.d/pdo_mysql.ini

and
sql.safe_mode = off off

i dont feel like reinstalling cacti(ie not putting to much time on it now since i´m on vacation for another 2months, so it would be nice to get it running again

also the poller.php seems to work just fine acording to the logs anyway

/F
fredde
Posts: 8
Joined: Sat Apr 02, 2005 3:27 am

Post by fredde »

made a double post...would be nice to being able to delete own posts

/F
fredde
Posts: 8
Joined: Sat Apr 02, 2005 3:27 am

Post by fredde »

anyone?
User avatar
TheWitness
Developer
Posts: 16997
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Create a file in your web root called "phpinfo.php", include in it the following:

Code: Select all

<?php phpinfo(); ?>
Then point your browser to it. See if you have the mysql module installed then.

From my experience a few of the distro's have a CLI config for PHP and a separate WWW config. My guess is that your WWW config does not have PHP-MySQL installed in it.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
fredde
Posts: 8
Joined: Sat Apr 02, 2005 3:27 am

Post by fredde »

tnx for the answers

my solution was adding this into mysql.ini

extension_dir= "/usr/lib/php5/20060613+lfs"

working like a charm now, back to vacation ;)

/F
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests