I have zoneminder v1.32.3 install on mp PI4,
I have install everything according to this guide :
and it's working without ay problem.
have try to use API , but I get error:
Code: Select all
curl -XPOST -d "user=David&pass=Davidpass" http://10.0.0.113/zm/api/host/login.json
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL was not found on this server.</p>
<hr>
<address>Apache/2.4.38 (Raspbian) Server at 10.0.0.113 Port 80</address>
</body></html>
Code: Select all
in options-system :
OPT_USE_AUTH - is checked
AUTH_HASH_SECRET - 123!@!@!@Fvn43
I get a page:
Code: Select all
Release Notes for CakePHP 2.10.11.
Your version of PHP is 5.2.8 or higher.
Your tmp directory is writable.
The ApcEngine is being used for core caching. To change the config edit APP/Config/core.php
Your database configuration file is present.
CakePHP is able to connect to the database.
http://10.0.0.113/zm/api/getVersion.json
http://10.0.0.113/zm/api/host/getVersion.json
I get:
Code: Select all
Not Found
The requested URL was not found on this server.
Apache/2.4.38 (Raspbian) Server at 10.0.0.113 Port 80
Code: Select all
Make sure you have the following settings in ZM:
AUTH_RELAY is set to hashed
A valid AUTH_HASH_SECRET is provided (not empty)
AUTH_HASH_IPS is disabled
OPT_USE_APIS is enabled
If you are using any version lower than ZM 1.34, OPT_USE_GOOG_RECAPTCHA is disabled
Thanks ,