Page 1 of 1

API problems in debian 10 with 1.34.20

Posted: Sat Sep 05, 2020 7:26 pm
by zurvan2
Fresh install, trying to get everything working. I've been following the directions here: https://wiki.zoneminder.com/Debian_10_B ... om_ZM_Repo

The web UI seems to work fine, but the api fails. Getting zm/api/host/getVersion.json results in a 500. Server logs say:
[Sat Sep 05 14:50:48.158874 2020] [:error] [pid 32551] [client 192.168.2.175:64890] PHP Fatal error: Call to undefined function apc_fetch() in /usr/share/zoneminder/www/api/lib/Cake/Cache/Engine/ApcEngine.php on line 91
I've searched, and tried a bunch of stuff, including comparing config against the docker image/container, and I can't see anything obvious. php config appears to be close, although there are different versions since the docker container is running sid instead of buster. My host has both ph 7.0 and 7.3 installed, and I have no idea how to tell which is being used for zoneminder.

Debian version is 10.5, up to date.

Any suggesions?

Re: API problems in debian 10 with 1.34.20

Posted: Sat Sep 05, 2020 9:27 pm
by burger
Try

Code: Select all

a2dismod php7.0 
a2enmod php7.3
Also make sure zoneminder.conf is enabled in apache.

Re: API problems in debian 10 with 1.34.20

Posted: Sun Sep 06, 2020 2:09 am
by zurvan2
That did it!
I had to also disable php5, which broke some other packages... but they were things I should have purged already anyway.

Thank you very much!

Re: API problems in debian 10 with 1.34.20

Posted: Fri Nov 13, 2020 7:16 pm
by pmele57
Been searching for days looking for the proper solution. This worked! Thanks :D