Fresh install v1.33.16

Forum for questions and support relating to 1.33.x development only.
Post Reply
factor200x
Posts: 17
Joined: Fri Apr 06, 2018 6:35 am

Fresh install v1.33.16

Post by factor200x » Tue Jan 14, 2020 3:35 pm

Good afternoon, everyone,

i have done a fresh installation of zoneminder .1.33.16 on a Debian 10. I performed the installation as described in

https://wiki.zoneminder.com/Debian_10_B ... pro_Master

as described. So far everything works but I can't get the API to work. If I call this via

curl -XPOST -d "user=admin&pass=PASSWORD" http://video.intern/zm/api/host/login.json

I find the following error in the apache log:

Code: Select all

[Tue Jan 14 16:19:52.776374 2020] [php7:error] [pid 1045] [client 87.174.172.219:38186] PHP Fatal error:  Uncaught Error: Call to undefined function apc_fetch() in /usr/share/zoneminder/www/api/lib/Cake/Cache/Engine/ApcEngine.php:91\nStack trace:\n#0 /usr/share/zoneminder/www/api/lib/Cake/Cache/Cache.php(363): ApcEngine->read('myapp_cake_core...')\n#1 /usr/share/zoneminder/www/api/lib/Cake/I18n/I18n.php(235): Cache::read('cake_dev_eng', '_cake_core_')\n#2 /usr/share/zoneminder/www/api/lib/Cake/basics.php(636): I18n::translate('Cache engine "%...', NULL, 'cake_dev')\n#3 /usr/share/zoneminder/www/api/lib/Cake/Cache/Cache.php(182): __d('cake_dev', 'Cache engine "%...', '_cake_core_')\n#4 /usr/share/zoneminder/www/api/lib/Cake/Cache/Cache.php(151): Cache::_buildEngine('_cake_core_')\n#5 /usr/share/zoneminder/www/api/app/Config/core.php(375): Cache::config('_cake_core_', Array)\n#6 /usr/share/zoneminder/www/api/lib/Cake/Core/Configure.php(72): include('/usr/share/zone...')\n#7 /usr/share/zoneminder/www/api/lib/Cake/bootstrap.php(442): Configure::bootstrap(true)\n#8 /usr/share/zoneminder/www/api/app/webroot/index.php(90): includ in /usr/share/zoneminder/www/api/lib/Cake/Cache/Engine/ApcEngine.php on line 91
During my search I found hints that the packages php-apcu php-apcu-bc still need to be installed but they were already installed.

Installed versions:

Zonminder v1.33.16
Apache/2.4.38 (Debian)
PHP Version 7.3.11-1~deb10u1

I have been looking for a solution for hours now and all approaches have not brought about any change. I would be very grateful for help!

Thanks
Olaf

bbunge
Posts: 2698
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Fresh install v1.33.16

Post by bbunge » Tue Jan 14, 2020 7:33 pm

Did you enable the api for the user?

Edit Just set up Zmninja on a fresh pi3 zm installed from the same wiki article. The api works for me.

User avatar
iconnor
Posts: 1325
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Fresh install v1.33.16

Post by iconnor » Thu Jan 16, 2020 12:07 am

I suspect that the apc packages might be for php 7.2 or other instead of 7.3

factor200x
Posts: 17
Joined: Fri Apr 06, 2018 6:35 am

Re: Fresh install v1.33.16

Post by factor200x » Thu Jan 16, 2020 1:10 pm

@bbunge

Yes, I have activated the API

@iconnor

that would be one possibility. I'll try PHP 7.

Thanks to all!
Olaf

factor200x
Posts: 17
Joined: Fri Apr 06, 2018 6:35 am

Re: Fresh install v1.33.16

Post by factor200x » Sat Feb 01, 2020 10:31 am

Hello everybody,

I have reinstalled the whole system and now it works!

Thanks
Olaf

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests