API not working. Missing files?
Posted: Wed May 15, 2019 9:22 am
Hi all,
I've recently upgraded my zoneminder installation from
Debian stretch stable with zoneminder 1.30.4
to
Debian buster testing with zoneminder 1.32.3.
Zoneminder packages from deb-multimedia repository.
Quite impressed with the new stability and smoothness of the setup.
Solved my "blue screen" issue described here
viewtopic.php?f=36&t=28082&hilit=blue+screen
Thanks to all the developers!
So far only one issue: can't get APi working as in the previous setup.
I've read again the docs here:
https://zoneminder.readthedocs.io/en/stable/api.html
Searched the forum and think I have the same issue described here:
viewtopic.php?f=38&t=27861&p=108685&hilit=api#p108685
I'm missing "host" dir in /usr/share/zoneminder/www/api/
Tried the suggested fix:
in
/etc/apache2/conf-enabled/zoneminder.conf
and restarted apache2, but still no go.
Any suggestion?
Thx in advance,
francis3
I've recently upgraded my zoneminder installation from
Debian stretch stable with zoneminder 1.30.4
to
Debian buster testing with zoneminder 1.32.3.
Zoneminder packages from deb-multimedia repository.
Quite impressed with the new stability and smoothness of the setup.
Solved my "blue screen" issue described here
viewtopic.php?f=36&t=28082&hilit=blue+screen
Thanks to all the developers!
So far only one issue: can't get APi working as in the previous setup.
I've read again the docs here:
https://zoneminder.readthedocs.io/en/stable/api.html
Searched the forum and think I have the same issue described here:
viewtopic.php?f=38&t=27861&p=108685&hilit=api#p108685
I'm missing "host" dir in /usr/share/zoneminder/www/api/
Tried the suggested fix:
Code: Select all
<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>
/etc/apache2/conf-enabled/zoneminder.conf
and restarted apache2, but still no go.
Any suggestion?
Thx in advance,
francis3