Debian 12 "Bookworm" with Zoneminder 1.36.33 Install Procedure

Discussions related to the 1.36.x series of ZoneMinder
robfish
Posts: 30
Joined: Wed May 16, 2018 11:24 pm

Re: Debian 12 "Bookworm" with Zoneminder 1.36.33 Install Procedure

Post by robfish »

ubeaut wrote: Wed Jun 28, 2023 2:05 am @Robfish...is yours working now as well?
Yes. See post above.
bbunge
Posts: 2935
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Debian 12 "Bookworm" with Zoneminder 1.36.33 Install Procedure

Post by bbunge »

I rebuilt my server today with a fresh install of Bookworm and installed Zoneminder per the WIKI install procedure. I had no problems and was able to configure Zoneminder as it was on Debian 11 and it seems that all is well! I must admit that I did not test features I do not use but Zoneminder works the way I expect it to work. ZmNinja also works.

FWIW: besides Zoneminder, with Mariadb, Apache2 and PHP 8.2, I installed Webmin, UFW, fail2ban, APCUPSD and certbot (to get a Lets Encrypt cert). I recently beefed up the server security as I have ports open to it through the router firewall and several hacking attempts have been recorded.
ubeaut
Posts: 6
Joined: Tue Jun 27, 2023 11:19 pm

Re: Debian 12 "Bookworm" with Zoneminder 1.36.33 Install Procedure

Post by ubeaut »

Hi,
I noticed the zoneminder.conf on this page https://wiki.zoneminder.com/Debian_12_B ... er_1.36.33 has been updated and the quotes for the alias has been amended.

Should this part:
Alias /zm /usr/share/zoneminder/www
<Directory /usr/share/zoneminder/www>

also have quotes so it is consistent with the rest of the configuration. IE changed to this:

Alias /zm "/usr/share/zoneminder/www"
<Directory "/usr/share/zoneminder/www">
robfish
Posts: 30
Joined: Wed May 16, 2018 11:24 pm

Re: Debian 12 "Bookworm" with Zoneminder 1.36.33 Install Procedure

Post by robfish »

Mine is working with these:-

Code: Select all

ScriptAlias /zm/cgi-bin "/usr/lib/zoneminder/cgi-bin"
<Directory "/usr/lib/zoneminder/cgi-bin">

Alias /zm/cache /var/cache/zoneminder
<Directory /var/cache/zoneminder>

Alias /zm /usr/share/zoneminder/www
<Directory /usr/share/zoneminder/www>

<Directory "/usr/share/zoneminder/www/api">
<Directory "/usr/share/zoneminder/www/api/app">
<Directory "/usr/share/zoneminder/www/api/app/webroot">
I haven't tried with adding or removing quotes.
ubeaut
Posts: 6
Joined: Tue Jun 27, 2023 11:19 pm

Re: Debian 12 "Bookworm" with Zoneminder 1.36.33 Install Procedure

Post by ubeaut »

Mine is working with this:
# Remember to enable cgi mod (i.e. "a2enmod cgi").
ScriptAlias /zm/cgi-bin "/usr/lib/zoneminder/cgi-bin"
<Directory "/usr/lib/zoneminder/cgi-bin">
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
AllowOverride All
Require all granted
</Directory>

# Order matters. This alias must come first.
Alias /zm/cache "/var/cache/zoneminder"
<Directory "/var/cache/zoneminder">
Options -Indexes +FollowSymLinks
AllowOverride None
<IfModule mod_authz_core.c>
# Apache 2.4
Require all granted
</IfModule>
</Directory>

Alias /zm "/usr/share/zoneminder/www"
<Directory "/usr/share/zoneminder/www">
Options -Indexes +FollowSymLinks
<IfModule mod_dir.c>
DirectoryIndex index.php
</IfModule>
</Directory>

# For better visibility, the following directives have been migrated from the
# default .htaccess files included with the CakePHP project.
# Parameters not set here are inherited from the parent directive above.
<Directory "/usr/share/zoneminder/www/api">
RewriteEngine on
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
RewriteBase /zm/api
</Directory>

<Directory "/usr/share/zoneminder/www/api/app">
RewriteEngine on
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]
RewriteBase /zm/api
</Directory>

<Directory "/usr/share/zoneminder/www/api/app/webroot">
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
RewriteBase /zm/api
</Directory>
bbunge
Posts: 2935
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Debian 12 "Bookworm" with Zoneminder 1.36.33 Install Procedure

Post by bbunge »

ubeaut wrote: Wed Jun 28, 2023 10:56 pm Hi,
I noticed the zoneminder.conf on this page https://wiki.zoneminder.com/Debian_12_B ... er_1.36.33 has been updated and the quotes for the alias has been amended.

Should this part:
Alias /zm /usr/share/zoneminder/www
<Directory /usr/share/zoneminder/www>

also have quotes so it is consistent with the rest of the configuration. IE changed to this:

Alias /zm "/usr/share/zoneminder/www"
<Directory "/usr/share/zoneminder/www">
A quick search for Linux Alias commands shows the quotes may be required. I will ping iconnor on this.
Edit: The "updated" zoneminder.conf file I used in the install procedure was copied from a Zoneminder install on Debian 11. Am wondering if the problem is that Debian 12 install does not have /var/cache/zoneminder/cache and Debian 11 install does?
bbunge
Posts: 2935
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Debian 12 "Bookworm" with Zoneminder 1.36.33 Install Procedure

Post by bbunge »

I have verified that a Debian 11 install contains a directory /var/cache/zoneminder/cache and the directory is empty. Therefore it presumed the Debian 12 install does not create /var/cache/zonemnder.cache.

I will add this to my install and change the zoneminder.conf file back to /var/cache/zonemnder/cache

Edit: well, my test did not work. Back to using the config per the WIKI.
Last edited by bbunge on Thu Jun 29, 2023 2:25 pm, edited 1 time in total.
User avatar
iconnor
Posts: 2936
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Debian 12 "Bookworm" with Zoneminder 1.36.33 Install Procedure

Post by iconnor »

I don't think the quotes matter because we don't have spaces in the path.
denis33
Posts: 2
Joined: Sat Aug 05, 2023 2:31 pm

Re: Debian 12 "Bookworm" with Zoneminder 1.36.33 Install Procedure

Post by denis33 »

I just install that clean new config debian 12 + zm 1.36.33 -I tried 3 or 4 new installations.
I wanted to add a first new camera with the setup of my previous config 1.34.23 on debian 10.
ZoneMinder is running with charge, DB, default and /dev/shm (positive values)
but ... the status remains on "not capturing" and no videos available on montage with the error "Monitor is not capturing. We will be unable to provide an image"
The camera is still running on the "old" server. The camera is ok with vlc ...
Any ideas to solve that issue ?
dougmccrary
Posts: 1256
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Debian 12 "Bookworm" with Zoneminder 1.36.33 Install Procedure

Post by dougmccrary »

Is your "Source type" ffmpeg? Try thar if not.
denis33
Posts: 2
Joined: Sat Aug 05, 2023 2:31 pm

Re: Debian 12 "Bookworm" with Zoneminder 1.36.33 Install Procedure

Post by denis33 »

my source is a "remote" camera with an adresse like rtsp://user:pwd@192.168.1.xxx:554/live/channel.
I read the post to change from "remote" to "ffmpeg" but it still doesn't work.
That config works fine with zm 1.34 ...
dougmccrary
Posts: 1256
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Debian 12 "Bookworm" with Zoneminder 1.36.33 Install Procedure

Post by dougmccrary »

Here's a clue - remote won't work in 1.36, though it may work in 1.34.
If ffmpeg doesn't work, there's something else going wrong.
If you copy what works with vlc into zm using source ffmpeg it will work since vlc is essentially ffmpeg.
If it still doesn't work, then again, something else is awry.
clotspond
Posts: 1
Joined: Mon Aug 07, 2023 1:08 pm

Re: Debian 12 "Bookworm" with Zoneminder 1.36.33 Install Procedure

Post by clotspond »

I have two other remote Zoneminder servers on Bullseye still so I will not be upgrading them to Bookworm.
Stock Market Courses Hubspot agency
Last edited by clotspond on Tue Aug 15, 2023 9:54 pm, edited 1 time in total.
bbunge
Posts: 2935
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Debian 12 "Bookworm" with Zoneminder 1.36.33 Install Procedure

Post by bbunge »

clotspond wrote: Mon Aug 07, 2023 1:15 pm I have two other remote Zoneminder servers on Bullseye still so I will not be upgrading them to Bookworm.
That is a good idea at least until the zmrepo is populated with installs for Bookworm. Even then doing an OS upgrade could still mess with the Zoneminder settings. I write from experience!
Danalberto231
Posts: 1
Joined: Thu Aug 17, 2023 11:17 am

Re: Debian 12 "Bookworm" with Zoneminder 1.36.33 Install Procedure

Post by Danalberto231 »

I am still researching ZM on Debian 12 as time permits. I suspect there may be some issues with PHP 8.2 but I am not that much of a wizzard to find them. I tried to install PHP 7.4 on Bookworm then install Zoneminder but PHP 8.2 got installed. I was able to get the API to work with ZmNinja but browsers other than Firefox tank out. Iconner will in time get a version for bookworm on the zmrepo so stay tuned! Hubspot partner agency
Mehendi designs
Post Reply