Unfamiliar sessions error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Schraalhans Keukenmeester

    Unfamiliar sessions error

    I never saw it before, but today I got several:

    Fatal error: session_start() [function.sessio n-start]: Failed to
    initialize storage module: user (path: /tmp) in
    /usr/local/psa/home/vhosts/mydomain/httpdocs/test/script.php

    In the few docs I found related to this msg problems with a custom
    session handler are mentioned as the source of the problem, but I don't
    even have a custom session handler. I use the default one, the default
    path for session files etc etc.

    The server is not my own, but my host's. The script hasn't changed for
    weeks, and it worked before. All it does is test if a certain session
    var exists. If not it opens a new session and sets the variable.

    Apache2 server, PHP 5.0.4), the settings for sessions as copied from
    phpinfo():
    Session Support enabled
    Registered save handlers files user sqlite
    Registered serializer handlers php php_binary wddx

    Directive Local Value Master Value
    session.auto_st art Off Off
    session.bug_com pat_42 Off Off
    session.bug_com pat_warn On On
    session.cache_e xpire 180 180
    session.cache_l imiter nocache nocache
    session.cookie_ domain no value no value
    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_divi sor 1000 1000
    session.gc_maxl ifetime 1440 1440
    session.gc_prob ability 1 1
    session.hash_bi ts_per_characte r 5 5
    session.hash_fu nction 0 0
    session.name PHPSESSID PHPSESSID
    session.referer _check no value no value
    session.save_ha ndler files files
    session.save_pa th /tmp /tmp
    session.seriali ze_handler php php
    session.use_coo kies On On
    session.use_onl y_cookies Off Off
    session.use_tra ns_sid 0 0

    Any clues? Thanks in advance!
    Sh.
  • Erwin Moller

    #2
    Re: Unfamiliar sessions error

    Schraalhans Keukenmeester wrote:
    I never saw it before, but today I got several:
    >
    Fatal error: session_start() [function.sessio n-start]: Failed to
    initialize storage module: user (path: /tmp) in
    /usr/local/psa/home/vhosts/mydomain/httpdocs/test/script.php
    >
    In the few docs I found related to this msg problems with a custom
    session handler are mentioned as the source of the problem, but I don't
    even have a custom session handler. I use the default one, the default
    path for session files etc etc.
    >
    The server is not my own, but my host's. The script hasn't changed for
    weeks, and it worked before. All it does is test if a certain session
    var exists. If not it opens a new session and sets the variable.
    >
    Apache2 server, PHP 5.0.4), the settings for sessions as copied from
    phpinfo():
    Session Support enabled
    Registered save handlers files user sqlite
    Registered serializer handlers php php_binary wddx
    >
    Directive Local Value Master Value
    session.auto_st art Off Off
    session.bug_com pat_42 Off Off
    session.bug_com pat_warn On On
    session.cache_e xpire 180 180
    session.cache_l imiter nocache nocache
    session.cookie_ domain no value no value
    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_divi sor 1000 1000
    session.gc_maxl ifetime 1440 1440
    session.gc_prob ability 1 1
    session.hash_bi ts_per_characte r 5 5
    session.hash_fu nction 0 0
    session.name PHPSESSID PHPSESSID
    session.referer _check no value no value
    session.save_ha ndler files files
    session.save_pa th /tmp /tmp
    session.seriali ze_handler php php
    session.use_coo kies On On
    session.use_onl y_cookies Off Off
    session.use_tra ns_sid 0 0
    >
    Any clues? Thanks in advance!
    Sh.
    Hi,

    I don't get it. What is your seve hadler? file AND user?
    I never saw that before.

    I wrote userdefined session sava handlers too, but I changed the:
    session.save_ha ndler = files
    to
    session.save_ha ndler = user

    Seems like you use both.
    Which one should PHP use?
    Could that be the source of the problem?


    Regards,
    Erwin Moller

    Comment

    • Jerry Stuckle

      #3
      Re: Unfamiliar sessions error

      Schraalhans Keukenmeester wrote:
      I never saw it before, but today I got several:
      >
      Fatal error: session_start() [function.sessio n-start]: Failed to
      initialize storage module: user (path: /tmp) in
      /usr/local/psa/home/vhosts/mydomain/httpdocs/test/script.php
      >
      In the few docs I found related to this msg problems with a custom
      session handler are mentioned as the source of the problem, but I don't
      even have a custom session handler. I use the default one, the default
      path for session files etc etc.
      >
      The server is not my own, but my host's. The script hasn't changed for
      weeks, and it worked before. All it does is test if a certain session
      var exists. If not it opens a new session and sets the variable.
      >
      Apache2 server, PHP 5.0.4), the settings for sessions as copied from
      phpinfo():
      Session Support enabled
      Registered save handlers files user sqlite
      Registered serializer handlers php php_binary wddx
      >
      Directive Local Value Master Value
      session.auto_st art Off Off
      session.bug_com pat_42 Off Off
      session.bug_com pat_warn On On
      session.cache_e xpire 180 180
      session.cache_l imiter nocache nocache
      session.cookie_ domain no value no value
      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_divi sor 1000 1000
      session.gc_maxl ifetime 1440 1440
      session.gc_prob ability 1 1
      session.hash_bi ts_per_characte r 5 5
      session.hash_fu nction 0 0
      session.name PHPSESSID PHPSESSID
      session.referer _check no value no value
      session.save_ha ndler files files
      session.save_pa th /tmp /tmp
      session.seriali ze_handler php php
      session.use_coo kies On On
      session.use_onl y_cookies Off Off
      session.use_tra ns_sid 0 0
      >
      Any clues? Thanks in advance!
      Sh.
      It looks like you don't have write access to /tmp. This could be
      because the permissions on /tmp are wrong, /tmp is filled (disk quota), etc.

      You need to be talking to your host.

      --
      =============== ===
      Remove the "x" from my email address
      Jerry Stuckle
      JDS Computer Training Corp.
      jstucklex@attgl obal.net
      =============== ===

      Comment

      • Schraalhans Keukenmeester

        #4
        Re: Unfamiliar sessions error

        Erwin Moller wrote:
        Schraalhans Keukenmeester wrote:
        >
        >I never saw it before, but today I got several:
        >>
        >Fatal error: session_start() [function.sessio n-start]: Failed to
        >initialize storage module: user (path: /tmp) in
        >/usr/local/psa/home/vhosts/mydomain/httpdocs/test/script.php
        >>
        >In the few docs I found related to this msg problems with a custom
        >session handler are mentioned as the source of the problem, but I don't
        >even have a custom session handler. I use the default one, the default
        >path for session files etc etc.
        >>
        >The server is not my own, but my host's. The script hasn't changed for
        >weeks, and it worked before. All it does is test if a certain session
        >var exists. If not it opens a new session and sets the variable.
        >>
        >Apache2 server, PHP 5.0.4), the settings for sessions as copied from
        >phpinfo():
        >Session Support enabled
        > Registered save handlers files user sqlite
        > Registered serializer handlers php php_binary wddx
        >>
        >Directive Local Value Master Value
        >session.auto_s tart Off Off
        > session.bug_com pat_42 Off Off
        > session.bug_com pat_warn On On
        > session.cache_e xpire 180 180
        > session.cache_l imiter nocache nocache
        > session.cookie_ domain no value no value
        > 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_divi sor 1000 1000
        > session.gc_maxl ifetime 1440 1440
        > session.gc_prob ability 1 1
        > session.hash_bi ts_per_characte r 5 5
        > session.hash_fu nction 0 0
        > session.name PHPSESSID PHPSESSID
        > session.referer _check no value no value
        > session.save_ha ndler files files
        > session.save_pa th /tmp /tmp
        > session.seriali ze_handler php php
        > session.use_coo kies On On
        > session.use_onl y_cookies Off Off
        > session.use_tra ns_sid 0 0
        >>
        >Any clues? Thanks in advance!
        >Sh.
        >
        Hi,
        >
        I don't get it. What is your seve hadler? file AND user?
        I never saw that before.
        >
        I wrote userdefined session sava handlers too, but I changed the:
        session.save_ha ndler = files
        to
        session.save_ha ndler = user
        >
        Seems like you use both.
        Which one should PHP use?
        Could that be the source of the problem?
        >
        >
        Regards,
        Erwin Moller
        The problem (or lack thereof) is I don't have no steenkin' custom
        handler, at all. It's just PHP suddenly shouting I do. So either
        something really odd is going on in my host's setup, or.... Well, I dunno.

        I've asked them about the problem. No reports on /tmp being full or
        inaccessible, no recent changes they could link to this situation.

        I can't force the bahaviour in any way I could think off, it just pops
        up now and then. I'll have another browse through the bug list, maybe
        something I missed is there after all.

        Thx for the input guys

        Comment

        Working...