I've never had to use the API before, but I do want to get zmNinja working so I can sort out remote access to site cameras for some members of staff. Attempting to access the API returns an Error 500 and the following is dropped in the web server log.
Code: Select all
PHP Fatal error: Uncaught Error: Call to undefined function apc_fetch() in /usr/share/zoneminder/www/api/lib/Cake/Cache/Engine/ApcEngine.php on line 91
edit - PHP is 7.4.13, Ubuntu is 18.04. ZM Web UI is working just fine.
edit 2 - ah ha. Same solution as here - viewtopic.php?p=109497#p109497. Apache was using wrong PHP version!