MDN

Go Back   Mambo - Forums Closed for posting > Mambo 4.5.5 - Stable > Installation Questions

Reply
 
Thread Tools Search this Thread Display Modes
Old August 27th, 2004, 07:54   #1
jhaeusler@mac.com
 
Join Date: Aug 2004
Posts: 13
jhaeusler@mac.com is on a distinguished road
Default SOLVED ADMIN problem: Failed to initialize storage module

I did it. Hope my description helps others. It took me 2 days to figure it out.

Problem: I couldn't log in to the Admin area, the error was always "Failed to initialize storage module".

It was clear that the problem was that the session.start() in the index.php in the adminstration directory didn't work.

Before you try anything else (like I did), check your setup, because it seems that it's a PHP problem. It is most definitely not a MOS bug, although there must be ways to avoid the trouble, but I am not a coder.

My setup:
Apache/2.0.49 (Linux/SuSE)
PHP 4.3.4

Now as long as everything else seems to work (your "frontend" MOS shows up and you can log in as admin and make text changes from there, which means that your DB is set up correctly) and as long as you are sure that the /tmp or whatever dir that you're trying to write the session data to is really writeable (check your php info for the session.save_path and check via shell that the dir that is named there is writeable):

Make sure that the session.save_handler is set to FILES, *not* USER.

This solved my login problem.

Additionally, if your provider gives you confixx (like 1&1, my root server provider does), you need to change those things in confixx' own "httpd special" area. enter "php_value session.save_handler files" without the quotes there, wait some minutes, check if the change is visible in your php info and then:

Restart Apache.

For my server, it's

/etc/init.d/apache 2 restart

but that will differ on your server so please do some google research if you're a newbie, it's not too hard.

Again: Though I tried all the other things mentioned here, I had set them all back to the initial settings. The session.save_handler setting is the only thing I needed to change for the admin login to finally work.

So there's a good chance that yours will, too. Even with safe_mode on.

And to make this post even longer: I found this info in several PHP forums, it's a well known PHP problem in some versions. An upgrade to PHP 4.3.7 might have helped as well, but I didn't want to go into that.

Hope it helps some people, now let's get working. :)
jhaeusler@mac.com is offline   Reply With Quote
Old September 5th, 2004, 10:57   #2
tanmar
 
Join Date: Mar 2004
Posts: 3
tanmar is on a distinguished road
Default

Hi!
Ich this works you are my personal hero! I'm struggeling with the same problem and found the bug report on php.net. I tried the update to php 4.3.8 but the problem still persists. I could have known that before, if i would have read the bug report completely :-(

The problem evidently arises if scripts, which are using the built-in functions for session handling and scripts which are using custom session handlers are running alternately.

Your solution sounds reasonably - I will try that. I have just one question: Are you sure with "php_value session.save_handler files"?

To turn safe mode off I use "php_admin_value safe_mode off"? Shouldn't it be "php_admin_value session.save_handler files" accordingly?
Thx for your help!
Marco
tanmar is offline   Reply With Quote
Old September 5th, 2004, 13:36   #3
jhaeusler@mac.com
 
Join Date: Aug 2004
Posts: 13
jhaeusler@mac.com is on a distinguished road
Default

hi,

I really am not sure about the difference between "php_value" and "php_admin_value", maybe a php expert can jump in here?

all I can tell is that it did work on my set-up. hope it does with yours, too.

I personally and unfortunately stopped using mambo, but feel free to mail me with further questions, if I can help.
jhaeusler@mac.com is offline   Reply With Quote
Old September 10th, 2004, 09:02   #4
tanmar
 
Join Date: Mar 2004
Posts: 3
tanmar is on a distinguished road
Default

Ok - I tried your solution. First everything went well and I was already happy. Unfortunately a few days later i suddenly had to see this ugly message again. The problem seems to occur less often but it still persists. Thx anyway!
tanmar is offline   Reply With Quote
Old September 10th, 2004, 19:11   #5
richard.h
 
Join Date: Sep 2004
Posts: 1
richard.h is on a distinguished road
Default

Quote:
Originally Posted by jhaeusler@mac.com
hi,

I really am not sure about the difference between "php_value" and "php_admin_value", maybe a php expert can jump in here?

all I can tell is that it did work on my set-up. hope it does with yours, too.

I personally and unfortunately stopped using mambo, but feel free to mail me with further questions, if I can help.
That's an easy one: if you set some value in the httpd.conf via php_admin_value it can not be overwritten later in php code with the likes of ini_set etc ...

Which is quite useful if you have a shared envireonment and set a custom open_basedir or include_path for example.
richard.h is offline   Reply With Quote
Old December 24th, 2004, 14:52   #6
redbob
 
Join Date: Dec 2004
Posts: 2
redbob is on a distinguished road
Default

I'd just like to confirm that this fix worked for me.
I'm running php 4.3.9/apache/windows and kept getting "Failed to initialize storage module"

i changed session.save_handler from 'user' to 'files' and everything works great now.

thanks to the OP for the fix
redbob is offline   Reply With Quote
Old December 24th, 2004, 15:00   #7
mambo_chris_au
 
mambo_chris_au's Avatar
 
Join Date: Feb 2004
Location: Sydney NSW Australia
Posts: 987
mambo_chris_au is on a distinguished road
Default

According to PHP session.save_handler is set to files as the default.
__________________
Chris
And the family stamboom
There is no failure until you give up.
mambo_chris_au is offline   Reply With Quote
Old December 24th, 2004, 15:14   #8
redbob
 
Join Date: Dec 2004
Posts: 2
redbob is on a distinguished road
Default

Quote:
Originally Posted by mambo_chris_au
According to PHP session.save_handler is set to files as the default.
it wasn't on my system. i did a clean install of Wamp5 with the php4 patch.
redbob is offline   Reply With Quote
Old December 27th, 2004, 12:26   #9
receptor
 
Join Date: Dec 2004
Posts: 4
receptor is on a distinguished road
Default still not working

according to my phpinfo, both local and master values of session.save_handler are set to files, and i still cant login cuz of this disturbing message. my provider is not likely to upgrade his php (currently 4.3.10). any ideas?
receptor is offline   Reply With Quote
Old December 27th, 2004, 20:44   #10
chette
 
Join Date: Dec 2004
Location: Philippins
Posts: 30
chette is on a distinguished road
Default

My provider has 4.3.10 installed, and I also get this problem. I did, however, see this error in the list of bugs in PHP.net.

I've done a lot of searching, got a lof of suggestions, and forwarded them to my provider. We've been trying them all one by one. Nothing seem to work so far.

BTW, this bug also occurs in our installation of TikiWiki.
chette is offline   Reply With Quote
Old December 27th, 2004, 21:45   #11
mambo_chris_au
 
mambo_chris_au's Avatar
 
Join Date: Feb 2004
Location: Sydney NSW Australia
Posts: 987
mambo_chris_au is on a distinguished road
Default

Quote:
Originally Posted by chette
My provider has 4.3.10 installed, and I also get this problem. I did, however, see this error in the list of bugs in PHP.net.

I've done a lot of searching, got a lof of suggestions, and forwarded them to my provider. We've been trying them all one by one. Nothing seem to work so far.

BTW, this bug also occurs in our installation of TikiWiki.
refer them to:
http://forum.mamboserver.com/showthread.php?postid=127609&highlight=4.3.10#post 127609
__________________
Chris
And the family stamboom
There is no failure until you give up.
mambo_chris_au is offline   Reply With Quote
Old April 6th, 2005, 14:59   #12
Gorlok
 
Gorlok's Avatar
 
Join Date: Apr 2005
Posts: 1
Gorlok is on a distinguished road
Default Thanks!!

This help me a lot! Thanks!
Gorlok is offline   Reply With Quote
Old October 30th, 2005, 08:48   #13
futurahost
 
Join Date: Oct 2005
Posts: 1
futurahost is on a distinguished road
Default

Hello

Strong workaround is:

Edit your php.ini this way:
auto_prepend_file = /usr/local/lib/php.ini.prepend

On your /usr/local/lib/php.ini.prepend file put this:
<? session_module_name("files"); ?>

Of course, you can place your prepended file wherever you like, as long as you state it correctly on your auto_prepend_file directive of php.ini.

We haven't seen this issue anymore on any of our servers after applying this "patch".

Regards

Agustín Povarchik
FuturaHost.Com
futurahost is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
*NEW* component Admin - Copy Module -> Version 1-0 stingrey Components 24 January 3rd, 2005 03:51
Again: Failed to initialize storage module jhaeusler@mac.com Installation Questions 2 August 27th, 2004 02:13
Failed to initialize session module spud Installation Questions 1 May 8th, 2004 09:21
install problems - various stupid Installation Questions 13 March 4th, 2004 17:44
Fatal error: session_start(): Failed to initialize storage m kyutums Installation Questions 13 February 7th, 2004 06:53


All times are GMT -7. The time now is 06:03.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.