|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
![]() Join Date: Aug 2004
Posts: 13
![]() |
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. :) |
|
|
|
|
|
#2 |
![]() Join Date: Mar 2004
Posts: 3
![]() |
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 |
|
|
|
|
|
#3 |
![]() Join Date: Aug 2004
Posts: 13
![]() |
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. |
|
|
|
|
|
#4 |
![]() Join Date: Mar 2004
Posts: 3
![]() |
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!
|
|
|
|
|
|
#5 | |
![]() Join Date: Sep 2004
Posts: 1
![]() |
Quote:
Which is quite useful if you have a shared envireonment and set a custom open_basedir or include_path for example. |
|
|
|
|
|
|
#6 |
![]() Join Date: Dec 2004
Posts: 2
![]() |
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 |
|
|
|
|
|
#7 |
![]() Join Date: Feb 2004
Location: Sydney NSW Australia
Posts: 987
![]() |
According to PHP session.save_handler is set to files as the default.
|
|
|
|
|
|
#8 | |
![]() Join Date: Dec 2004
Posts: 2
![]() |
Quote:
|
|
|
|
|
|
|
#9 |
![]() Join Date: Dec 2004
Posts: 4
![]() |
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?
|
|
|
|
|
|
#10 |
![]() Join Date: Dec 2004
Location: Philippins
Posts: 30
![]() |
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. |
|
|
|
|
|
#11 | |
![]() Join Date: Feb 2004
Location: Sydney NSW Australia
Posts: 987
![]() |
Quote:
http://forum.mamboserver.com/showthread.php?postid=127609&highlight=4.3.10#post 127609 |
|
|
|
|
|
|
#12 |
![]() Join Date: Apr 2005
Posts: 1
![]() |
This help me a lot! Thanks!
![]() |
|
|
|
|
|
#13 |
![]() Join Date: Oct 2005
Posts: 1
![]() |
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 |
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |