[Solved] session_start(): Failed to initialize storage module: user (path:/tmp)

Joomla version 1.0 is end-of-life and are no longer supported. Please use Joomla 3.x instead.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
User avatar
chay
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 175
Joined: Wed Aug 17, 2005 11:20 pm
Location: Alaska
Contact:

[Solved] session_start(): Failed to initialize storage module: user (path:/tmp)

Post by chay » Thu Jul 06, 2006 12:21 am

In case anyone else encounters this "Fatal Error" on Joomla 1.0.10:
Fatal error: session_start(): Failed to initialize storage module: user (path: /tmp) in /home/user/public_html/administrator/index.php on line 87
I ran into it when first trying to login to the back end after a new install. To skip my troubleshooting path, drop to #4.

1. My first search attempt began with reply #10 (http://forum.joomla.org/index.php/topic,23607.0.html):
session.save_path = "/tmp"
The directory (in this case "tmp") in the save path in php.ini must exist.

My phpinfo() display shows my path is, indeed, "/tmp". The "/tmp" directory does exist. A command line "ls"display shows that I am the owner of /tmp, "user:user". Permissions were 755. I changed them to 777.  The error still showed. Returned permissions back to 755.

2. reply #11 (http://forum.joomla.org/index.php/topic,23607.0.html):
It's a Safe Mode problem. Safe Mode should be "Off".
My pre-installer and phpinfo() displays both showed Safe Mode to be "Off", as recommended.


3. reply #13 (http://forum.joomla.org/index.php/topic,23607.0.html) has a login-loop problem, which he resolved by changing the php.ini lines from
session.save_path = "C:\Temp"
session.cookie_path = \
to
session.save_path = "C:\Temp"
session.cookie_path =
Hmm. I don't have access to php.ini.

4. reply #1 (http://forum.joomla.org/index.php/topic,60280.0.html):
In your administrator/index.php (and when needed also at index2.php) insert the middle line:

  session_name( md5( $mosConfig_live_site ) );
  -->INSERT THIS LINE --> ini_set('session.save_handler', 'files');
  session_start();
Inserting the line into index2.php got me into my backend.
Last edited by chay on Thu Jul 06, 2006 7:36 am, edited 1 time in total.

michaelpatter
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Wed Jul 19, 2006 3:39 pm

Re: [Solved] session_start(): Failed to initialize storage module: user (path:/t

Post by michaelpatter » Wed Aug 16, 2006 8:07 pm

Thanks for the post!  This fix worked for me as well.


Locked

Return to “Installation - 1.0.x”