PHP session files have permissions of 000 - They're ununsable
Posted
by vanced
on Server Fault
See other posts from Server Fault
or by vanced
Published on 2010-01-20T00:57:08Z
Indexed on
2010/03/26
16:03 UTC
Read the original article
Hit count: 192
I kept having issues with a Document Management System I'm trying to install as, at the first step of the installation process, it would error with:
Warning: Unknown: open(/tmp/sess_d39cac7f80834b2ee069d0c867ac169c, O_RDWR) failed: Permission denied (13) in Unknown on line 0
Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
I looked in /tmp and saw the sess_* files have the following permissions
---------- 1 vanced vanced 1240 Jan 20 08:48 sess_d39cac7f80834b2ee069d0c867ac169c
All the session files look like this. So obviously, they're unusable by PHP and it's causing me lots of problems.
How can I get PHP to set the correct permissions? I've tried changing the directory which php.ini uses to /tmp/phpsessions and the same thing occurs. The directories are a+rwx
.
© Server Fault or respective owner