zonemiders REST API calls like: curl -d "username=xxx&password=xxxx&action=login&view=console" -c cookies.txt http://IP/zm/index.php curl -b cookies.txt http://IP/zm/api/host/monitors.json does not return anything, but apache log: PHP Warning: /usr/share/zoneminder/www/api/app/tmp/cache/persistent/ is not writable where cache directory does not exists /usr/share/zoneminder/www/api/app/tmp -> /var/lib/zoneminder/api_tmp ll /usr/share/zoneminder/www/api/app/tmp/ -rwxrwxr-x 1 apache apache 0 Dec 11 04:39 .keep_www-misc_zoneminder-0 WORKAROUND: cd /var/lib/zoneminder/api_tmp mkdir cache chown apache:apache cache/ chmod 770 cache cd /var/lib/zoneminder/api_tmp/cache/ mkdir persistent chown apache:apache persistent/ chmod 770 persistent mkdir models chown apache:apache models/ chmod 770 models
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c66a9574205fcefe13c0b13a778af774f2703a0b