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

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
fromillo
Posts: 6
Joined: Sun Sep 08, 2019 3:56 pm

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

Post 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
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

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

Post 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.
fromillo
Posts: 6
Joined: Sun Sep 08, 2019 3:56 pm

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

Post 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
User avatar
burger
Posts: 390
Joined: Mon May 11, 2020 4:32 pm

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

Post 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.
fastest way to test streams:
ffmpeg -i rtsp://<user>:<pass>@<ipaddress>:554/path ./output.mp4 (if terminal only)
ffplay rtsp://<user>:<pass>@<ipaddress>:554/path (gui)
find paths on ispydb or in zm hcl

If you are new to security software, read:
https://wiki.zoneminder.com/Dummies_Guide
fromillo
Posts: 6
Joined: Sun Sep 08, 2019 3:56 pm

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

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