Hi, Thanks, it's originally is /var/lib/php/session, I double it's privilege problem, so changed to /tmp.

And I Followed your advice for setenforce off, but can't make it work.


On 2012/4/16 14:13, Alain Williams wrote:
On Sun, Apr 15, 2012 at 12:27:00AM +0800, Mingda wrote:
Hi, All,

System: CentOS 5.5; PHP version is 5.1.6.

I met a strange problem associate with session_save_handler in current
environment(The same code can work well in my local windows platform and
ubuntu system).

I just want to use a customized session save handler to be triggered, so
that I can call my own logic to handling the session. The testing in
local is pretty great but when migration to the VPS, it bring me the
following error:

Fatal error: session_start() [<a
href='function.session-start'>function.session-start</a>]: Failed to
initialize storage module: user (path: /tmp)

The default value for session save handler and session save path in
php.ini are:

session.save_handler = files
session.save_path = "/tmp"
session.name = PHPSESSID

Try changing the path to /var/lib/php/session

Are you being caught by selinux - try
        setenforce off
and see if that makes it work.

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to