Problem running poller.php :: Debian Sarge
Moderators: Developers, Moderators
Problem running poller.php :: Debian Sarge
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
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
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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]
[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]
It's installed
Any Ideas???
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.
-
- Posts: 8
- Joined: Mon Oct 18, 2004 9:11 am
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
You'll have to change php.ini, e.g.as well (example holds for linux)
Reinhard
Code: Select all
; Enable mysql extension module
extension=mysql.so
Reinhard
-
- Posts: 8
- Joined: Mon Oct 18, 2004 9:11 am
-
- Posts: 8
- Joined: Mon Oct 18, 2004 9:11 am
lvm thanks for the help, I was able to find the answer fairly quickly.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
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
Just had to have the right thing to google.
ItsNewToYou
Who is online
Users browsing this forum: No registered users and 0 guests