#77 Fatal error: session_start()


Fatal error: session_start()
Failed to initialize storage module: user (path: 0;660;/tmp/php)

This error occurs in BSD and from what I've read, it is a long lasting issue on BSD based servers. However, the script will work correctly if you prepend with the following:

ini_set("session.save_handler", "files");


  • Jakub Vrána

    Jakub Vrána - 2010-10-13
    • status: open --> closed-invalid
  • Jakub Vrána

    Jakub Vrána - 2010-10-13

    This has probably nothing to do with Adminer. Does session_start() work elsewhere?

    Adminer respects your default session.save_handler.

  • Nobody/Anonymous

    Yes, session_start() does work in other scripts.

  • Jakub Vrána

    Jakub Vrána - 2010-10-13

    Can you please attach all your session options taken from phpinfo()?

  • Jakub Vrána

    Jakub Vrána - 2010-10-13
    • status: closed-invalid --> open-invalid
  • Nobody/Anonymous

    Session Support enabled
    Registered save handlers files user
    Registered serializer handlers php php_binary

    Directive Local Value Master Value
    session.auto_start Off Off
    session.bug_compat_42 Off Off
    session.bug_compat_warn On On
    session.cache_expire 180 180
    session.cache_limiter nocache nocache
    session.cookie_domain .MASKED.MASKED.MASKED.com no value
    session.cookie_httponly Off Off
    session.cookie_lifetime 0 0
    session.cookie_path / /
    session.cookie_secure Off Off
    session.entropy_file no value no value
    session.entropy_length 0 0
    session.gc_divisor 1000 1000
    session.gc_maxlifetime 1440 1440
    session.gc_probability 1 1
    session.hash_bits_per_character 5 5
    session.hash_function 0 0
    session.name PHPSESSID PHPSESSID
    session.referer_check no value no value
    session.save_handler user files
    session.save_path 0;660;/tmp/php 0;660;/tmp/php
    session.serialize_handler php php
    session.use_cookies On On
    session.use_only_cookies Off Off
    session.use_trans_sid 0 0

  • Jakub Vrána

    Jakub Vrána - 2010-10-13

    Adminer respects your INI settings. "user" session.save_handler is not valid if you don't define it by session_set_save_handler(). So please change session.save_handler in your configuration. Your Master Value is correct so I guess it is overwritten in per-directory setting.

  • Jakub Vrána

    Jakub Vrána - 2010-10-13
    • status: open-invalid --> closed-invalid
  • Nobody/Anonymous

    Odd indeed. session.save_handler=files is set in php.ini. I don't know why it's bugging out in this one instance. But as I mentioned earlier, this is a known problem in PHP on BSD as far as I can tell from reading and ini_set("session.save_handler", "files"); had to be set to get Adminer to run.

    If nothing else, use this as a heads up in case someone else brings up the issue in the future.

  • Jakub Vrána

    Jakub Vrána - 2010-10-14

    You have to set session.save_handler in your configuration. You have probably overwritten the php.ini setting in the web server configuration (in Apache through php_value directive) or in per-directory setting (in Apache through .htaccess file).


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks