Page 2 of 2

Re: Issue changing the apache user/group

Posted: Tue Oct 03, 2017 8:40 pm
by knight-of-ni
Excellent. Glad you got it working.

Re: Issue changing the apache user/group

Posted: Wed Oct 04, 2017 1:12 pm
by Spart
Thanks for all the help!

Re: [Resolved] Issue changing the apache user/group

Posted: Tue Oct 10, 2017 1:42 pm
by Spart
One quick addendum to this:

The FreePBX instructions do not mention this directory and it's easy to overlook, but necessary for authentication to work with ZM.

Whenever I enabled authentication (by enabling OPT_USE_AUTH in the options) I could not log in.

I enabled debugging and I was getting these PHP warnings which were being suppressed without debugging on:

Code: Select all

Warning: session_start(): open(/var/lib/php/session/sess_rle6amfkmh8tpr5slqv8bltc25, O_RDWR) failed: Permission denied (13) in /usr/share/zoneminder/www/index.php on line 128

Warning: session_write_close(): open(/var/lib/php/session/sess_rle6amfkmh8tpr5slqv8bltc25, O_RDWR) failed: Permission denied (13) in /usr/share/zoneminder/www/index.php on line 193

Warning: session_write_close(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in /usr/share/zoneminder/www/index.php on line 193
The ownership on /var/lib/php/session was "root:apache" and it needs to be "root:asterisk"

"chown -R root:asterisk /var/lib/php/session" fixed this.