Hello,
I'm encountering an unusual problem regarding user permissions.
I have a site1 on a Plesk server, the session.save_path is the default one (/var/lib/php5, ower is root:root and permissions are drwx-wx-wt).
PHP is ran as an Apache module. The user Apache is www-data and it's in groups www-data, psaserv, psacln, psasb.
PHP sessions are working almost perfectly, but I have from time to time this kind of errors :
It's completly random, 95% of PHP sessions are OK, 5% return an error.
To investigate this problem, I've created a site2 with Plesk, and I've changed in the site settings the save_path option (like this solution : http://kb.odin.com/en/7056).
I have on this site2 a session.save_path set to /var/www/vhosts/site2.com/private/session
I've created this directory and set permissions to 0777, but I have the same error
How could this directory not being writable as it have a 777 permission ?
I found many occurrences of this problem, but none of the solutions are solving my case.
Do you have any suggestions I can try ?
Thanks !
I'm encountering an unusual problem regarding user permissions.
I have a site1 on a Plesk server, the session.save_path is the default one (/var/lib/php5, ower is root:root and permissions are drwx-wx-wt).
PHP is ran as an Apache module. The user Apache is www-data and it's in groups www-data, psaserv, psacln, psasb.
PHP sessions are working almost perfectly, but I have from time to time this kind of errors :
Code:
Unknown: open(/var/lib/php5/sess_kr5krp6eqov59fkd50a17ujhj1, O_RDWR) failed: Permission denied (13)
It's completly random, 95% of PHP sessions are OK, 5% return an error.
To investigate this problem, I've created a site2 with Plesk, and I've changed in the site settings the save_path option (like this solution : http://kb.odin.com/en/7056).
I have on this site2 a session.save_path set to /var/www/vhosts/site2.com/private/session
I've created this directory and set permissions to 0777, but I have the same error
Code:
Unknown: open(/var/www/vhosts/site2.com/private/session/sess_m8sv32uoaspjj3riparlnseiv2, O_RDWR) failed: Permission denied (13)
Code:
# ls -l
drwxrwxrwx 2 www-data www-data 4096 sept. 2 14:58 session
How could this directory not being writable as it have a 777 permission ?
I found many occurrences of this problem, but none of the solutions are solving my case.
Do you have any suggestions I can try ?
Thanks !