Page 3 of 4

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

Posted: Wed Jun 28, 2023 2:17 am
by robfish
ubeaut wrote: Wed Jun 28, 2023 2:05 am @Robfish...is yours working now as well?
Yes. See post above.

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

Posted: Wed Jun 28, 2023 10:44 pm
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.

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

Posted: Wed Jun 28, 2023 10:56 pm
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">

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

Posted: Thu Jun 29, 2023 5:33 am
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.

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

Posted: Thu Jun 29, 2023 5:40 am
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>

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

Posted: Thu Jun 29, 2023 12:31 pm
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?

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

Posted: Thu Jun 29, 2023 1:47 pm
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.

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

Posted: Thu Jun 29, 2023 2:16 pm
by iconnor
I don't think the quotes matter because we don't have spaces in the path.

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

Posted: Sat Aug 05, 2023 8:18 pm
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 ?

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

Posted: Sun Aug 06, 2023 4:18 am
by dougmccrary
Is your "Source type" ffmpeg? Try thar if not.

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

Posted: Sun Aug 06, 2023 5:12 am
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 ...

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

Posted: Sun Aug 06, 2023 6:27 am
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.

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

Posted: Mon Aug 07, 2023 1:15 pm
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

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

Posted: Tue Aug 08, 2023 2:53 pm
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!

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

Posted: Thu Aug 17, 2023 11:27 am
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