I tried following https://zoneminder.readthedocs.io/en/stable/api.html
I have Gentoo Linux, PHP 8 apcu enabled (shows up in phpinfo).
Code: Select all
apcu
APCu Support Enabled
Version 5.1.19
APCu Debugging Disabled
MMAP Support Enabled
MMAP File Mask no value
Serialization Support php
Build Date Oct 18 2021 21:21:33
I receive 404 errors when using curl, as described in https://zoneminder.readthedocs.io/en/stable/api.html
Code: Select all
# curl http://localhost/zm/api/host/getVersion.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 Server at localhost Port 80</address>
</body></html>
Code: Select all
127.0.0.1 - - [27/Oct/2021:22:54:26 +1030] "GET /zm/api/host/getVersion.json HTTP/1.1" 404 255
Nothing more serious than a Warning is generated in the Web based ZM log.
No indication of errors in /var/log/zoneminder/* logs, including cake_error.log