Debian 11 Install Issues

Add any particular hints or tricks you have found to help with your ZoneMinder experience.
Post Reply
49ford
Posts: 1
Joined: Mon Apr 11, 2022 3:48 am

Debian 11 Install Issues

Post by 49ford »

Tried using the official documentation and couldn't get zoneminder to load.

I've posted this to the Wiki under the Discussion page.
The Official Documentation should be updated. Install went really well once
the Database issue was figured out.


The main problem is during install no Database or User is installed.

This is what worked.


Fresh Install Debian 11

su

sudo usermod -a -G sudo <username>

sudo reboot


sudo apt update

sudo apt upgrade


sudo apt install mariadb-server


sudo /usr/bin/mysql_secure_installation

follow instructions:


Change to your requirements this works


current PW enter for none

socket auth Y

Change Root PW Y (enter your new root mysql Password)

Remove anon Y

Remove Remote Y

Remove test Y

Reload Priv Y


sudo apt install zoneminder


mysql -u root -p < /usr/share/zoneminder/db/zm_create.sql

Enter mysql PW


mysql -u root -p -e "grant select,insert,update,delete,create,drop,alter,index,lock tables,alter routine,create routine,trigger,execute on zm.* to 'zmuser'@localhost identified by 'zmpass';"

Enter mysql PW


sudo chgrp -c www-data /etc/zm/zm.conf


sudo a2enconf zoneminder

sudo systemctl reload apache2

sudo systemctl enable zoneminder.service

sudo systemctl start zoneminder

Open a web browser window type [Your IP address/zm] without the [brackets]

Hope this helps others. Recommend updating the documentation for Debian 11
RonRN18
Posts: 52
Joined: Tue Aug 13, 2019 1:00 am

Re: Debian 11 Install Issues

Post by RonRN18 »

When I just built my last machine, a week or two ago, I was contemplating using Debian 11. I have more familiarity with Ubuntu but I've been using Debian a bit more lately... there are a few things they do differently, which I'm sure there is a valid reason for, but I'm just more comfortable in Ubuntu. I was really wanting to build it on Jammy Jellyfish but couldn't find repository support yet on Jammy Jellyfish, so ended up with Impish Indri and will upgrade whenever repository support is available. I think someone reported issues with PHP 8.1 and ZM... I'm sure that issue will need to be rectified somehow.

I appreciate the instructions you provided for those that follow the Debian 11 route.
User avatar
michaelbr
Posts: 25
Joined: Wed Apr 05, 2023 10:25 am

Re: Debian 11 Install Issues

Post by michaelbr »

49ford wrote: Mon Apr 11, 2022 4:23 am Tried using the official documentation and couldn't get zoneminder to load.

I've posted this to the Wiki under the Discussion page.
The Official Documentation should be updated. Install went really well once
the Database issue was figured out.
Just found this post, thanks for your tips, I'm in a similar situation (using MX Linux 21.3, based on Debian 11), my problem is bit different, followed this post to install, after install, when tried to restart mysql, got error saying that mysql: unrecognized service, seems mysql is not installed on MX, looking at your instructions, you only installed MariaDB, after install I can't find neither zm DB and zmuser, can I create manually zm DB and zmuser? I've noticed that you created zmuser manually with password, how ZM will know which passord to use for zmuser?
Thanks for your comment/suggestion
Michael
ezbncs
Posts: 9
Joined: Tue Jun 28, 2022 9:35 am
Location: Minnesota

Re: Debian 11 Install Issues

Post by ezbncs »

The password is located in zm.conf and the default is zmpass

ZM_DB_PASS=zmpass
Life what's that now back to zoneminder and motion detection hell.
User avatar
michaelbr
Posts: 25
Joined: Wed Apr 05, 2023 10:25 am

Re: Debian 11 Install Issues

Post by michaelbr »

ezbncs wrote: Mon May 29, 2023 8:17 pm The password is located in zm.conf and the default is zmpass

ZM_DB_PASS=zmpass
Thanks for this tip, it's working now.
Thanks for your comment/suggestion
Michael
ezbncs
Posts: 9
Joined: Tue Jun 28, 2022 9:35 am
Location: Minnesota

Re: Debian 11 Install Issues

Post by ezbncs »

glad I could help
Life what's that now back to zoneminder and motion detection hell.
Post Reply