session_start() dies

meff

10-10-2003 04:04:19

I just recently set NetMRG up on my Debian box and I can't seem to load up the website to start adding/configuring things. I get this error

Fatal error session_start() Failed to initialize storage module. in /usr/local/var/www/netmrg/include/config.php on line 37


Any ideas on what causes this?
Thanks!

-r

silfreed

10-10-2003 09:32:50

What version of PHP are you using?

It looks like there might be a permissions issue with apache being able to write to PHP's session save path (session.save_path). Check what this variable is set to (either in your php.ini, or create a page with phpinfo() in it) and make sure the user your webserver runs as can write to this directory.

-Doug

meff

10-10-2003 14:36:54

[quotea336ae9304="silfreed"]What version of PHP are you using?

It looks like there might be a permissions issue with apache being able to write to PHP's session save path (session.save_path). Check what this variable is set to (either in your php.ini, or create a page with phpinfo() in it) and make sure the user your webserver runs as can write to this directory.

-Doug[/quotea336ae9304]

PHP 4.3.2+rc3-6
session.save_path points to /tmp

*shrugs*

silfreed

10-10-2003 15:35:50

Yeah; I don't believe we're doing anything crazy with sessions that should cause that. Do you have any other apps on this box that use sessions? Maybe just create a simple page that does something like
[code182c6384b2f]
<?php

session_start();
if (empty($_SESSION["var"])) { $_SESSION["var"] = 0; }
$_SESSION["var"]++;

echo "Var: {$_SESSION['var']}<br />\n";
?>
[/code182c6384b2f]

put that in a php file on your webserver and reload it; 'Var' should output and increment. I'm not sure how adventurous you are, but maybe upgrade to a full release of PHP (4.3.3).

meff

10-10-2003 17:15:02

Fatal error session_start() Failed to initialize storage module. in /home/www/spherevision.org/htdocs/test.php on line 3

Must not be a NetMRG specific problem here.

You have any ideas?

silfreed

10-10-2003 17:53:43

Sorry; not off the top of my head. This is definitely a PHP issue; like I said before, it feels like it can't write to the /tmp directory; maybe check that. Otherwise, the only thing I can think of doing is upgrading PHP. I've been googling around, and although I see the error, I don't see any resolutions. Good luck, and let us know if you figure anything out.

-Doug

meff

10-10-2003 22:28:12

FIXED

session.save_handler needed to be set to "files"

I set the hard variable to "user" for Drupal.. oops )

Thanks for the help!

silfreed

10-10-2003 22:38:42

Excellent! Hopefully the rest of your NetMRG experience is less frustrating ;)

-Doug