Problem running poller.php :: Debian Sarge

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

Moderators: Developers, Moderators

Post Reply
bkbelew
Posts: 2
Joined: Wed Apr 19, 2006 12:23 pm

Problem running poller.php :: Debian Sarge

Post by bkbelew »

Fatal error: Call to undefined function: mysql_pconnect() in /var/www/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 356

Operating system: Debian Sarge
php version: PHP 4.3.10-16 (cli) (built: Aug 24 2005 20:25:01)
mysql version: mysql Ver 12.22 Distrib 4.0.24, for pc-linux-gnu (i386)


Can anyone help?

Thanks
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

You are lacking the php mysql package.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
bkbelew
Posts: 2
Joined: Wed Apr 19, 2006 12:23 pm

Post by bkbelew »

It's installed

Code: Select all

mon:/usr/local/nagios/etc# apt-get install php4-mysql
Reading Package Lists... Done
Building Dependency Tree... Done
php4-mysql is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
Any Ideas???
ItsNewToYou
Posts: 8
Joined: Mon Oct 18, 2004 9:11 am

Post by ItsNewToYou »

I am having the same issue, anyone been able to resolve this?

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

Post by gandalf »

You'll have to change php.ini, e.g.

Code: Select all

; Enable mysql extension module
extension=mysql.so
as well (example holds for linux)
Reinhard
ItsNewToYou
Posts: 8
Joined: Mon Oct 18, 2004 9:11 am

Post by ItsNewToYou »

Nope that isn't it, the extension was already enabled and I use PHP and mysql in other apps on the same server.

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

Post by gandalf »

Lately, there has been rumours on Debian Installs. AFAIK, this was solved by some Debian specific procedure. Please search/google for this (e.g. google: +Debian +install site:forums.cacti.net)
Reinhard
ItsNewToYou
Posts: 8
Joined: Mon Oct 18, 2004 9:11 am

Post by ItsNewToYou »

lvm wrote:Lately, there has been rumours on Debian Installs. AFAIK, this was solved by some Debian specific procedure. Please search/google for this (e.g. google: +Debian +install site:forums.cacti.net)
Reinhard
lvm thanks for the help, I was able to find the answer fairly quickly.

Code: Select all

grep -q mysql.so /etc/php4/apache2/php.ini || echo "extension=mysql.so">>php.ini
grep -q snmp.so /etc/php4/apache2/php.ini || echo "extension=snmp.so">>php.ini
dpkg-reconfigure php4-mysql
http://forums.cacti.net/about11420.html&highlight=

Just had to have the right thing to google.

ItsNewToYou
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests