php session errors -- permission

Support and queries relating to all previous versions of ZoneMinder
Locked
rrk
Posts: 22
Joined: Sat Mar 11, 2006 10:17 pm

php session errors -- permission

Post 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
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post 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.
rrk
Posts: 22
Joined: Sat Mar 11, 2006 10:17 pm

solved

Post 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
Locked