Page 1 of 1

Unable to connect to ZM db.could not find driver [Debian buster]

Posted: Sat Aug 08, 2020 12:02 pm
by fromillo
Hello,

i've tried to install zoneminder on ubuntu buster

It seems to be installed, but after some updates (of debian) i have this message when i try to connecto to it:
Unable to connect to ZM db.could not find driver
Do you have any idea?
Thank you very much

Re: Unable to connect to ZM db.could not find driver [Debian buster]

Posted: Sat Aug 08, 2020 1:54 pm
by bbunge
What install instructions did you use?
And, Buster is a Debian distro. Ubuntu is not. Maybe you should give us more info about your hardware and double check which version of Linux you use.

Edit:
This may be your problem: viewtopic.php?f=40&t=29774
You may have two copies of PHP or some parts of an old version left.

Re: Unable to connect to ZM db.could not find driver [Debian buster]

Posted: Sat Aug 08, 2020 6:34 pm
by fromillo
Yes, you're right.

I'm using Debian (i dont know why i wrote ubuntu :) ) buster

I don't remeber since i'm using zoneminder from some years, and i upgrade Debian after some months every releases came out.

I follow your link. Ok maybe i've more php installed, but i've no idea how to solve. In that post they didn't write how they solved.

Thank you and best regards

Re: Unable to connect to ZM db.could not find driver [Debian buster]

Posted: Sun Aug 09, 2020 1:21 am
by burger
If you are using apache, it's handled by an apache command.

Code: Select all

a2enmod 
or 
a2dismod.
Disable the old php (e.g. a2dismod php7.0)
and enable the new one. You can find version numbers in /etc/php.

Re: Unable to connect to ZM db.could not find driver [Debian buster]

Posted: Tue Aug 11, 2020 12:41 pm
by fromillo
Thank you everyone.

Searching the forum, and with your comments and suggestions, i fixed the problem.

I write how to fix it (on my debian buster).

I simply removed apache, sql (mariadb) and zoneminder with purge options in apt.

Then i re-installed them with apt install

Now it works, maybe something didn't worked properly during updates.

Thank you very much