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
Debian 11 Install Issues
Re: Debian 11 Install Issues
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.
I appreciate the instructions you provided for those that follow the Debian 11 route.
Re: Debian 11 Install Issues
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
Michael
Re: Debian 11 Install Issues
The password is located in zm.conf and the default is zmpass
ZM_DB_PASS=zmpass
ZM_DB_PASS=zmpass
Life what's that now back to zoneminder and motion detection hell.
Re: Debian 11 Install Issues
glad I could help
Life what's that now back to zoneminder and motion detection hell.