Page 1 of 1

php session errors -- permission

Posted: Wed Aug 29, 2007 3:58 pm
by rrk
getting php5 permission errors can't open session zm 1.22.3 debian
this was clean reinstall os and zm and it was working
tried zmfix

no log errors in
zm -- all
syslog
messages
apache access or error


Warning: session_start() [function.session-start]: open(/var/lib/php5/sess_235699ccc72c8b0fca152f9695e97265, O_RDWR) failed: Permission denied (13) in /usr/share/zoneminder/zm.php on line 177

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /usr/share/zoneminder/zm.php:177) in /usr/share/zoneminder/zm.php on line 177

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /usr/share/zoneminder/zm.php:177) in /usr/share/zoneminder/zm.php on line 177

Posted: Wed Aug 29, 2007 9:19 pm
by cordel
Take a look at the Apache docs for setting up folders outside of the web root.
http://httpd.apache.org/docs/2.2/sections.html
This is an apache configuration problem.

solved

Posted: Fri Aug 31, 2007 3:13 am
by rrk
it was a permission problem on /var/lib/php5
it needed to have permission
for the web user (debian is www-data) to write the session id

the problem had to do with moving the var directory to a separate disk
so it was not zm's problem