[Resolved] Issue changing the apache user/group
- knight-of-ni
- Posts: 2404
- Joined: Thu Oct 18, 2007 1:55 pm
- Location: Shiloh, IL
Re: Issue changing the apache user/group
Excellent. Glad you got it working.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
All of these can be found at https://zoneminder.blogspot.com/
Re: Issue changing the apache user/group
Thanks for all the help!
Re: [Resolved] Issue changing the apache user/group
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:
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.
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
"chown -R root:asterisk /var/lib/php/session" fixed this.