Recently a client moved an application that has been running successfully with PSA for several months to a new host. He contacted me after moving the app indicating they could no longer access their pages. The following error is being received.
Fatal error: session_start(): Failed to initialize storage module: user (path: /tmp) in /data/sites/18236/paintersandcleaners.com/www/schedule/phpsecurityadmin/include/config.php on line 78
Any insight?
Thanks
Matt Miner
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you for the suggestion. I added the ini_set to config.php.
with permissions to 777 on /data/sites/18236/paintersandcleaners.com/phpsess I get the following:
Fatal error: session_start(): Failed to initialize storage module: user (path: /data/sites/18236/paintersandcleaners.com/phpsess) in /data/sites/18236/paintersandcleaners.com/www/schedule/phpsecurityadmin/include/config.php on line 80
Safe mode is off.
All pages work ok if I comment out <?php //require_once "phpsecurityadmin/_restrict.php"; ?>
There are no other session starts other than PSA in the application code.
However if I go directly to the admin functions of PSA things work fine ie.
Recently a client moved an application that has been running successfully with PSA for several months to a new host. He contacted me after moving the app indicating they could no longer access their pages. The following error is being received.
Fatal error: session_start(): Failed to initialize storage module: user (path: /tmp) in /data/sites/18236/paintersandcleaners.com/www/schedule/phpsecurityadmin/include/config.php on line 78
Any insight?
Thanks
Matt Miner
Is the new host is safe mode? Try setting the session.save_path to a directory inside the user's home directory. For instance, try something like:
ini_set('session.save_path','/data/sites/18236/paintersandcleaners.com/phpsess');
You may also have to adjust the permissions for this directory.
Thank you for the suggestion. I added the ini_set to config.php.
with permissions to 777 on /data/sites/18236/paintersandcleaners.com/phpsess I get the following:
Fatal error: session_start(): Failed to initialize storage module: user (path: /data/sites/18236/paintersandcleaners.com/phpsess) in /data/sites/18236/paintersandcleaners.com/www/schedule/phpsecurityadmin/include/config.php on line 80
Safe mode is off.
All pages work ok if I comment out <?php //require_once "phpsecurityadmin/_restrict.php"; ?>
There are no other session starts other than PSA in the application code.
However if I go directly to the admin functions of PSA things work fine ie.
http://www.paintersandcleaners.com/schedule/phpsecurityadmin/index.php
opens fine and I am able to login as administrator and perform all admin functions to the database.
Matt