Page 1 of 1

Call to undefined function mysql_pconnect() problem

Posted: Fri Oct 28, 2011 8:33 pm
by juricac
Hi guys! I installed 1.25.00 zoneminder and when i start the daemon, in localhost/zm/ problem occurs:

Code: Select all

Fatal error: Call to undefined function mysql_pconnect() in /var/www/htdocs/zm/includes/database.php on line 32
Im wondering what causes the problem, and what can i do to fix it? Thanks!

Re: Call to undefined function mysql_pconnect() problem

Posted: Sun Oct 21, 2012 9:13 pm
by thomas1977
I got the same error on ubuntu 12.04 64bit. Did you solve the problem and know what caused it?

what I did so far without success

1. chmod -R 777 /usr/share/zoneminder
2. uninstalled completly, deleted /usr/share/zoneminder + /etc/zm -> fresh installation via apt-get install zoneminder
3. another post with same errorer reported php5-mysql was not installed -> it is


will post further information soon. Hope someone can help me fix this issue.

Thanks
thomas1977

Re: Call to undefined function mysql_pconnect() problem

Posted: Tue Oct 30, 2012 3:30 am
by boy157
uncomennted in /etc/php/apache2-php5.3/php.ini and in /etc/php/cli-php5.3/php.ini

extension=php_mysql.so
extension=php_mysqli.so

Re: Call to undefined function mysql_pconnect() problem

Posted: Tue Oct 30, 2012 7:50 am
by thomas1977
Hi and thank you for your reply! On Ubuntu 12.04 it is /etc/php5/apache2/php.ini and /etc/php5/cli/php.ini

both files dont show anything about php_mysql

apt-get install php5-mysql says it is already installed.

Re: Call to undefined function mysql_pconnect() problem

Posted: Tue Oct 30, 2012 11:36 pm
by thomas1977
please forum can anybody help me? Im becoming crazy about this. Please someone help me . . .

Re: Call to undefined function mysql_pconnect() problem

Posted: Mon Nov 05, 2012 6:25 pm
by thomas1977
Finally I could find the error in wrong/missing apache2 config.

uncomment in /etc/php5/apache2 and reload apche2
extension=mysql.so