Page 1 of 1

Debian 11 Install Issues

Posted: Mon Apr 11, 2022 4:23 am
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

Re: Debian 11 Install Issues

Posted: Sun Apr 17, 2022 3:21 pm
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.

Re: Debian 11 Install Issues

Posted: Sun May 28, 2023 3:23 pm
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?

Re: Debian 11 Install Issues

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

ZM_DB_PASS=zmpass

Re: Debian 11 Install Issues

Posted: Tue May 30, 2023 6:48 am
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.

Re: Debian 11 Install Issues

Posted: Tue May 30, 2023 9:57 pm
by ezbncs
glad I could help