[HELP]: Multiple ZM installs using a single, remote database
Posted: Mon Feb 02, 2009 2:53 pm
Hi guys,
First a big thank you to the maker of ZM for creating such an elegant surveillance solution and that too open source
I am trying to deploy ZM on two separate machines but only one of them has MySQL server running. I want the other (database-less) machine to access the same ZM database on the remote machine. So I ran the ./configure script as follows:
./configure --with-webdir=xxx --with-cgidir=xxx ZM_DB_HOST="172.16.0.224" ZM_DB_NAME="zm" ZM_DB_USER="zmuser" ZM_DB_PASS="zmpass" ZM_SSL_LIB=openssl --with-webuser=www-data --with-webgroup=www-data
The installation completes. But when I point the browser to "http://localhost/zm/index.php" (the alias has been set) I get an error which reads:
Fatal error: Call to undefined function mysql_pconnect() in /usr/share/zoneminder/zm_db.php on line 27
Can anyone help me out here?
Thanks in advance.
EDIT: The default_host in php.ini [mysql] section has also been set to 172.16.0.224.
First a big thank you to the maker of ZM for creating such an elegant surveillance solution and that too open source
I am trying to deploy ZM on two separate machines but only one of them has MySQL server running. I want the other (database-less) machine to access the same ZM database on the remote machine. So I ran the ./configure script as follows:
./configure --with-webdir=xxx --with-cgidir=xxx ZM_DB_HOST="172.16.0.224" ZM_DB_NAME="zm" ZM_DB_USER="zmuser" ZM_DB_PASS="zmpass" ZM_SSL_LIB=openssl --with-webuser=www-data --with-webgroup=www-data
The installation completes. But when I point the browser to "http://localhost/zm/index.php" (the alias has been set) I get an error which reads:
Fatal error: Call to undefined function mysql_pconnect() in /usr/share/zoneminder/zm_db.php on line 27
Can anyone help me out here?
Thanks in advance.
EDIT: The default_host in php.ini [mysql] section has also been set to 172.16.0.224.