Call to undefined function mysql_pconnect() problem

Forum for questions and support relating to the 1.25.x releases only.
Locked
juricac
Posts: 22
Joined: Wed Jun 15, 2011 2:03 pm

Call to undefined function mysql_pconnect() problem

Post 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!
thomas1977
Posts: 17
Joined: Mon Oct 31, 2011 5:19 pm

Re: Call to undefined function mysql_pconnect() problem

Post 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
boy157
Posts: 5
Joined: Wed Sep 05, 2012 12:26 pm

Re: Call to undefined function mysql_pconnect() problem

Post 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
thomas1977
Posts: 17
Joined: Mon Oct 31, 2011 5:19 pm

Re: Call to undefined function mysql_pconnect() problem

Post 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.
thomas1977
Posts: 17
Joined: Mon Oct 31, 2011 5:19 pm

Re: Call to undefined function mysql_pconnect() problem

Post by thomas1977 »

please forum can anybody help me? Im becoming crazy about this. Please someone help me . . .
thomas1977
Posts: 17
Joined: Mon Oct 31, 2011 5:19 pm

Re: Call to undefined function mysql_pconnect() problem

Post by thomas1977 »

Finally I could find the error in wrong/missing apache2 config.

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