Page 1 of 1

Api - 404 error

Posted: Sat Aug 31, 2019 11:53 am
by andyinno
Hi everybody,

it's two days that I am reading everything related to zoneminder without finding what is going wrong.

I installed zoneminder v1.32.3 on a raspberry pi with raspbian buster light. I configured the camera and I can see it in the browser.

I now want to connect to it using the api.

The problem I facing is that the tests that I read on the net asks to view a json reply under the api folder.
The request is getting me a 404 reply.

Checking apache logs give me no more information. Just what it is in the browser.

I can browse my zm/api/ folder via browser and I see "Release Notes for CakePHP 2.10.11"

everything is green except for "DebugKit is not installed. It will help you inspect and debug different aspects of your application.
You can install it from GitHub"

Any ideas about how to go over this?
thank you in advance

Re: Api - 404 error

Posted: Sun Sep 01, 2019 2:45 pm
by sjoerd
andyinno wrote: Sat Aug 31, 2019 11:53 am The problem I facing is that the tests that I read on the net asks to view a json reply under the api folder.
The request is getting me a 404 reply.

I have exactly the same problem :(
Also V1.32.a on RaspBerry PI.

Have looked around using Google, updated htaccess file as adviced but no success.
What should we do?

Re: Api - 404 error

Posted: Mon Sep 02, 2019 2:05 am
by bbunge
Switch to Ubuntu 18.04 preload server for the Pi. Arm64 or armhf works.
If you use ZM from the master PPA video writing even works!

Re: Api - 404 error

Posted: Tue Sep 03, 2019 8:44 am
by sjoerd
MY ZoneMinder API is now working on Raspbian Debian Buster!

I replaced my config in:
/etc/apache2/conf-available/zoneminder.conf

with this one:
felixr wrote: Tue Sep 03, 2019 12:50 am ZM 1.32.3 is working for me on Debian 10 with the following configuration for apache 2.4 (zoneminder.conf)
Thanx Felixr for sharing!

Re: Api - 404 error

Posted: Tue Sep 03, 2019 9:09 pm
by felixr
Glad I could help.

Re: Api - 404 error

Posted: Fri Oct 11, 2019 7:05 pm
by sivik
What the configuration change that you made? There is nothing there. My api page works but if I go to check the getversion, it gives the 404 that seems to match what is going on here.

Re: Api - 404 error

Posted: Sat Oct 12, 2019 3:48 pm
by kitkat
sivik wrote: Fri Oct 11, 2019 7:05 pm What the configuration change that you made? There is nothing there. My api page works but if I go to check the getversion, it gives the 404 that seems to match what is going on here.
Here's the original post: viewtopic.php?f=38&t=28460#p111773