Ubuntu 16.04 with ZM 1.30.3

Forum for questions and support relating to the 1.30.x releases only.
Locked
bbunge
Posts: 2944
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Ubuntu 16.04 with ZM 1.30.3

Post by bbunge »

The earlier issue of the API not working has been fixed for Ubuntu 16.04. For a fresh install see:

https://wiki.zoneminder.com/Ubuntu_Serv ... e_easy_way

If you have upgraded and the API does not work you can add the "missing link" php-apcu-bc which has been added to the iconnor PPA
apt update
apt install php-apcu-bc

Restart Apache
service apache2 reload
fennec
Posts: 59
Joined: Thu Mar 20, 2014 1:17 am

Re: Ubuntu 16.04 with ZM 1.30.3

Post by fennec »

nothing to do last update
zm 1.30.3 xenia8
but no api access

PHP Warning: include(Cake/bootstrap.php): failed to open stream: No such file or directory in /usr/share/zoneminder/www/api/app/webroot/index.php on line 90
[Thu May 04 07:43:16.360207 2017] [:error] [pid 24441] [client 10.0.0.1:42130] PHP Warning: include(): Failed opening 'Cake/bootstrap.php' for inclusion (include_path='/usr/share/zoneminder/www/api/lib:.:/usr/share/php') in /usr/share/zoneminder/www/api/app/webroot/index.php on line 90
[Thu May 04 07:43:16.360219 2017] [:error] [pid 24441] [client 10.0.0.1:42130] PHP Fatal error: CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the directory containing your /cake core directory and your /vendors root directory. in /usr/share/zoneminder/www/api/app/webroot/index.php on line 99
[Thu May 04 07:43:46.317024 2017] [:error] [pid 24739] [client 10.0.0.186:52980] PHP Warning: include(Cake/bootstrap.php): failed to open stream: No such file or directory in /usr/share/zoneminder/www/api/app/webroot/index.php on line 90
[Thu May 04 07:43:46.317049 2017] [:error] [pid 24739] [client 10.0.0.186:52980] PHP Warning: include(): Failed opening 'Cake/bootstrap.php' for inclusion (include_path='/usr/share/zoneminder/www/api/lib:.:/usr/share/php') in /usr/share/zoneminder/www/api/app/webroot/index.php on line 90
[Thu May 04 07:43:46.317061 2017] [:error] [pid 24739] [client 10.0.0.186:52980] PHP Fatal error: CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the directory containing your /cake core directory and your /vendors root directory. in /usr/share/zoneminder/www/api/app/webroot/index.php on line 99
fennec
Posts: 59
Joined: Thu Mar 20, 2014 1:17 am

Re: Ubuntu 16.04 with ZM 1.30.3

Post by fennec »

ok after

sudo apt-get install cakephp

api ok
jeffh
Posts: 1
Joined: Thu May 04, 2017 3:24 pm

Re: Ubuntu 16.04 with ZM 1.30.3

Post by jeffh »

Thank you so much for the post!! I updated my Ubuntu 16.04LTS to zm 1.30.3 and my API stopped working (no zmNinja), until I grabbed the two packages and reloaded apache2.

Now the API is working fine again.

That's what I get for updating right away.
bbunge
Posts: 2944
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Ubuntu 16.04 with ZM 1.30.3

Post by bbunge »

You do not need to add cakephp
freff
Posts: 6
Joined: Sun Jul 17, 2016 3:41 am

Re: Ubuntu 16.04 with ZM 1.30.3

Post by freff »

Sadly, I also lost API access with Ubuntu 16.04 and ZM 1.30.3

I successfully performed the following but API still doesn't work
apt update
apt install php-apcu-bc
sudo apt-get install cakephp
sudo service apache2 reload
sudo service zoneminder reload
rebooted zoneminder server

The following error continues to appear in the apache2 error.log
PHP Fatal error: Call to undefined function apc_fetch() in /usr/share/zoneminder/www/api/lib/Cake/Cache/Engine/ApcEngine.php on line 78

Can anyone please help?
rockedge
Posts: 1177
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: Ubuntu 16.04 with ZM 1.30.3

Post by rockedge »

I tried php5-apcu-bc and had no success but I after I installed php5-apcu and restarted the API worked again.
Locked