PDA

View Full Version : Fatal error


dunedin
05-12-2005, 18:01
Hello,

I am running FC3, Kernel - 2.6.9, I installed zabbix on my machine but i get

Fatal error: Call to undefined function: mysql_pconnect() in /var/www/html/include/db.inc.php on line 33

when trying to execute http://localhost (or) http://ipaddress. phpinfo page works fine.

The installed packages are :

rpm -qa | grep php
php-4.3.9-3
php-mbstring-4.3.9-3
php-ldap-4.3.9-3
php-mysql-4.3.9-3
php-ncurses-4.3.9-3
php-pear-4.3.9-3
php-devel-4.3.9-3
php-snmp-4.3.9-3
php-gd-4.3.9-3

rpm -qa | grep MySQL
MySQL-client-4.0.26-0
MySQL-server-4.0.26-0
MySQL-devel-4.0.26-0

rpm -qa | grep httpd
httpd-suexec-2.0.52-3
system-config-httpd-1.3.1-1
httpd-2.0.52-3
httpd-manual-2.0.52-3

apache and mysql are running.


tried searching the forum, installed necessary package as said in the forum, but no luck.Can anyone advise ?

James Wells
05-12-2005, 18:27
Greetings,

Right off the bat, I suspect that you need to modify your php.ini to load the mysql.so extension.

dunedin
06-12-2005, 10:58
Thanks for your reply.
mysql.so extension is already loaded in php.ini. any other suggestion ?

jcrm
06-12-2005, 21:11
Thanks for your reply.
mysql.so extension is already loaded in php.ini. any other suggestion ?
Try this....

In your php.ini:

[MySQL]
; Allow or prevent persistent links.
mysql.allow_persistent = On


This will set to 'on' for mysql.allow_persistent, ok but is mysql
enabled.

alternativly edit the file referenced in the error, and change mysql_pconnect to mysql_connect

elkor
08-12-2005, 15:13
what does the output of phpinfo say about mysql availability?