API problem fresh Arch
Posted: Tue Apr 19, 2016 7:31 pm
I'm new to Zoneminder. For installation I followed the instructions at https://wiki.archlinux.org/index.php/ZoneMinder.
The web interface works perfectly and I got some monitors running nicely, but I'm having issues with the API:
When I try to access the API using curl method here: http://zoneminder.readthedocs.org/en/st ... l#overview
I get "object not found".
When I try ZmNinja app is says: "Login validated but API failed"
When I type the url in webbrowserI (http://localhost/zm/api) I get:
Warning: mkdir(): Permission denied in /srv/http/zoneminder/api/lib/Cake/Cache/Engine/FileEngine.php on line 380
Warning: _cake_core_ cache was unable to write 'cake_dev_sv' to File cache in /srv/http/zoneminder/api/lib/Cake/Cache/Cache.php on line 327
Warning: /srv/http/zoneminder/api/app/tmp/cache/persistent/ is not writable in /srv/http/zoneminder/api/lib/Cake/Cache/Engine/FileEngine.php on line 385
Fatal error: Uncaught CacheException: Cache engine "_cake_core_" is not properly configured. Ensure required extensions are installed, and credentials/permissions are correct in /srv/http/zoneminder/api/lib/Cake/Cache/Cache.php:186 Stack trace: #0 /srv/http/zoneminder/api/lib/Cake/Cache/Cache.php(151): Cache::_buildEngine('_cake_core_') #1 /srv/http/zoneminder/api/app/Config/core.php(375): Cache::config('_cake_core_', Array) #2 /srv/http/zoneminder/api/lib/Cake/Core/Configure.php(72): include('/srv/http/zonem...') #3 /srv/http/zoneminder/api/lib/Cake/bootstrap.php(431): Configure::bootstrap(true) #4 /srv/http/zoneminder/api/app/webroot/index.php(94): include('/srv/http/zonem...') #5 /srv/http/zoneminder/api/index.php(41): require('/srv/http/zonem...') #6 {main} thrown in /srv/http/zoneminder/api/lib/Cake/Cache/Cache.php on line 186
Any help would be appreciated!
The web interface works perfectly and I got some monitors running nicely, but I'm having issues with the API:
When I try to access the API using curl method here: http://zoneminder.readthedocs.org/en/st ... l#overview
I get "object not found".
When I try ZmNinja app is says: "Login validated but API failed"
When I type the url in webbrowserI (http://localhost/zm/api) I get:
Warning: mkdir(): Permission denied in /srv/http/zoneminder/api/lib/Cake/Cache/Engine/FileEngine.php on line 380
Warning: _cake_core_ cache was unable to write 'cake_dev_sv' to File cache in /srv/http/zoneminder/api/lib/Cake/Cache/Cache.php on line 327
Warning: /srv/http/zoneminder/api/app/tmp/cache/persistent/ is not writable in /srv/http/zoneminder/api/lib/Cake/Cache/Engine/FileEngine.php on line 385
Fatal error: Uncaught CacheException: Cache engine "_cake_core_" is not properly configured. Ensure required extensions are installed, and credentials/permissions are correct in /srv/http/zoneminder/api/lib/Cake/Cache/Cache.php:186 Stack trace: #0 /srv/http/zoneminder/api/lib/Cake/Cache/Cache.php(151): Cache::_buildEngine('_cake_core_') #1 /srv/http/zoneminder/api/app/Config/core.php(375): Cache::config('_cake_core_', Array) #2 /srv/http/zoneminder/api/lib/Cake/Core/Configure.php(72): include('/srv/http/zonem...') #3 /srv/http/zoneminder/api/lib/Cake/bootstrap.php(431): Configure::bootstrap(true) #4 /srv/http/zoneminder/api/app/webroot/index.php(94): include('/srv/http/zonem...') #5 /srv/http/zoneminder/api/index.php(41): require('/srv/http/zonem...') #6 {main} thrown in /srv/http/zoneminder/api/lib/Cake/Cache/Cache.php on line 186
Any help would be appreciated!