PHP session files have permissions of 000 - They're unusable

Posted by vanced on Server Fault See other posts from Server Fault or by vanced
Published on 2010-01-20T00:57:08Z Indexed on 2012/04/06 11:33 UTC
Read the original article Hit count: 215

Filed under:
|
|

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

Related posts about php

Related posts about permissions