[SOLVED] "Unable to connect to ZM db"

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
BlueH2O
Posts: 55
Joined: Thu Aug 12, 2010 10:33 pm

[SOLVED] "Unable to connect to ZM db"

Post 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.
Last edited by BlueH2O on Wed Jul 29, 2020 1:56 pm, edited 1 time in total.
BlueH2O
Posts: 55
Joined: Thu Aug 12, 2010 10:33 pm

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

Post 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.
Seamoss
Posts: 1
Joined: Tue Sep 07, 2021 5:25 pm

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

Post by Seamoss »

How did you fix this issue? Remove php 7.0? I've run into the same issue.
BlueH2O
Posts: 55
Joined: Thu Aug 12, 2010 10:33 pm

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

Post 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
Post Reply