ZM 1.34.22 - API not working, CakePHP error in Apache Error Log

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
FSAB
Posts: 8
Joined: Thu Sep 14, 2017 10:27 am

ZM 1.34.22 - API not working, CakePHP error in Apache Error Log

Post by FSAB »

Just upgraded to ZM 1.34.22 from 1.32 using the PPA.

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
Is something not installed correctly or corrupted and what can I do to resolve it?

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!
Post Reply