Re: Customized Session Handler can not work for PHP 5.1.6 and CentOS 5.5

From: Date: Mon, 16 Apr 2012 06:33:23 +0000
Subject: Re: Customized Session Handler can not work for PHP 5.1.6 and CentOS 5.5
References: 1 2  Groups: php.general php.general 
Request: Send a blank email to php-general+get-317568@lists.php.net to get a copy of this message
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. Mingda 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.


« previous php.general (#317568) next »