I recently upgraded to PHP 5.3, and since then I receive (sporadic) error messages that indicate that Apache (or maybe cleaner session files) does not have rights to the folder in which the sessions are stored.
This happens randomly and cannot be reproduced in exact steps, which led me to speculate that this is a session cleaner.
Does anyone have experience with such errors?
Error message (which runs in session_start() ):
ps_files_cleanup_dir: opendir (/ var / lib / php5) failed: Permission denied.
ls -ltr in the session directory gives:
drwx-wx-wt 2 root root 4096 2010-05-25 12:39 php5
Inside this directory, I see session files belonging to www-data, which is my Apache, and the application is working fine. What makes me wonder what user is running a GC session under?
php session
Itay Moav -Malimovka May 25 '10 at 13:06 2010-05-25 13:06
source share