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
Ubuntu 16.04 with ZM 1.30.3
Re: Ubuntu 16.04 with ZM 1.30.3
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
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
Re: Ubuntu 16.04 with ZM 1.30.3
ok after
sudo apt-get install cakephp
api ok
sudo apt-get install cakephp
api ok
Re: Ubuntu 16.04 with ZM 1.30.3
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.
Now the API is working fine again.
That's what I get for updating right away.
Re: Ubuntu 16.04 with ZM 1.30.3
You do not need to add cakephp
Re: Ubuntu 16.04 with ZM 1.30.3
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?
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?
Re: Ubuntu 16.04 with ZM 1.30.3
I tried php5-apcu-bc and had no success but I after I installed php5-apcu and restarted the API worked again.