View Full Version : Call to undefined function: mysql_pconnect()
Hi all, zabbix newbie here
RH9.0, Mysql 4.1
I followed the install instruction to a T. The only thing I did not do is edit the /etc/inetd.conf file as RH does not have that.
When accessing the zabbix html page for the first time, I'm getting this:
Fatal error: Call to undefined function: mysql_pconnect() in /var/www/html/zabbix/include/db.inc.php on line 32
Any ideas very much appreciated!
btw, this is line 32 of /var/www/html/zabbix/include/db.inc.php
30 if($DB_TYPE == "MYSQL")
31 {
32 $DB=mysql_pconnect($DB_SERVER,$DB_USER,$DB_PASSWOR D);
33 if(!mysql_select_db($DB_DATABASE))
34 {
35 echo "Error connecting to database [".mysql_error()."]";
36 exit;
37 }
38 mysql_select_db($DB_DATABASE);
just realized i compiled zabbix and then upgraded mysql from 3.23 to 4.1.. recomiling...
so I have recompiled zabbix and reinstalled from scratch after the mysql upgrade.. I'm still having the exact same problem :(
-thanks for any leads
Missing php4-mysql module?
php-mysql is installed..
# rpm -qa | grep php
php-ldap-4.2.2-17.2
php-mysql-4.2.2-17.2
php-4.2.2-17.2
php-imap-4.2.2-17.2
-ps I realize I put this in the wrong section.. apologies
I don't think its a problem with zabbix as much as it is a problem with how php/mysql is installed on my system. Hence, I'm re-compiling all of it, from scratch :(
pattieja
11-03-2005, 22:15
I'm not sure where it's located on RedHat, but on Debian I had to change my /etc/php4/apache2/php.ini configuration file to add:
extension=mysql.so
and restart Apache.
The error message went away, and I was presented with the ZABBIX login screen.