Page 1 of 1

[SOLVED] "Unable to connect to ZM db"

Posted: Wed Jul 29, 2020 12:48 pm
by BlueH2O
Upgraded yesterday from 1.34.15 to .16, and everything looked OK, but this morning I went to check on things and I can't log in.
There's a message: "Unable to connect to ZM db.could not find driver" It doesn't specify what driver is missing.

web_php.log has [Failed db connection to ] at /usr/share/zoneminder/www/includes/database.php line 74
I noticed it says "connection to <blank>" and I'm sure that is a clue but I'm not sure what to do with it.

[SOLVED] Re: "Unable to connect to ZM db"

Posted: Wed Jul 29, 2020 1:54 pm
by BlueH2O
Found the problem. libapache2-mod-php7.3 was missing. Somehow pieces of php7.0 were hanging around even tho it wasn't installed, zoneminder was trying to use those instead.

Re: [SOLVED] "Unable to connect to ZM db"

Posted: Tue Sep 14, 2021 7:15 pm
by Seamoss
How did you fix this issue? Remove php 7.0? I've run into the same issue.

Re: [SOLVED] "Unable to connect to ZM db"

Posted: Fri Mar 25, 2022 5:35 pm
by BlueH2O
apt remove php7.0-cli php7.0-common php7.0-gd php7.0-json php7.0-opcache php7.0-readline php7.0-xml php7.0 libapache2-mod-php7.0