I have a VPS running on CentOS 5 with Plesk 9.
My website us running on FastCGI.
I'm having problems reading / writing sessions. On my servers error_log
I get the following errors:
(...) Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0
(...) open(/var/lib/php/session/sess_v8g5rt6p83b9one3mlg9sh9ts0, O_RDWR) failed: Permission denied (13) in Unknown on line 0
I'm tempted to change
session.save_path = "/var/lib/php/session"
to
session.save_path = "/tmp"
The problem is that /tmp
has chmod 777, so I'm not sure if this is the best way to go?
Update
The session
dir has the following rights: -rwxrwx---
User root
Group apache