Cake logging permissions error fix

If you've made a patch to quick fix a bug or to add a new feature not yet in the main tree then post it here so others can try it out.
Post Reply
paulwaite87
Posts: 1
Joined: Fri Jun 08, 2018 2:49 am

Cake logging permissions error fix

Post by paulwaite87 »

Zoneminder 1.30.4 installed on Debian 9.4.

Cake error messages were being output to /var/log/zmerror.log and thus causing permission errors.

I hacked it by editing this file: /usr/share/zoneminder/www/api/app/Config/bootstrap.php

And changing the below config setting to add the trailing slash to the directory path. That allowed Cake to output to /var/log/zm/error.log.

This could possibly be fixed where the code concatenates 'error.log' but for now this works for me.

CakeLog::config('custom_path', array(
'engine' => 'File',
'path' => '/var/log/zm/'
));
Post Reply