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. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php #include <std_disclaimer.h> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php