The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Session Problem

Discussion in 'General Discussion' started by ephlox, Aug 18, 2007.

  1. ephlox

    ephlox Well-Known Member

    Joined:
    Aug 22, 2004
    Messages:
    60
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    Today cpanel is automatically upgraded 10 to 11. Now many scripts are on working on server. It is giving session error like this.


    [18-Aug-2007 13:21:03] PHP Warning: Unknown(): open(/tmp/sessions /sess_523d07f206a727becc18aff412b4dffe, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
    [18-Aug-2007 13:21:03] PHP Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp/sessions ) in Unknown on line 0


    Please tell me how i can fix this problem thanks.

    Best Regards,
    Farrukh
     
  2. joaoarosoa

    joaoarosoa Registered

    Joined:
    Dec 1, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    What have you done? Same problem here.

    Thanks,
    João
     
  3. rbalaji

    rbalaji Member

    Joined:
    Nov 27, 2007
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    This error clearly saying that your /tmp partition is out of disk space.
    so, you should remove the old session files.
    run the below command in console:

    rm -rf /tmp/sess*


    it ll fix the issue .
     
  4. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    The error message is self-explanatory. Although your scripts were working, you'll have to look into php.ini file and check the session local path. Also, make sure
    1- the php_sessions directory in your system is set as writable.
    2. Php and other Php related applications -- including ZendOptimizer and eAccelerator (if installed) -- are configured and working properly.
     
  5. katz_global

    katz_global Well-Known Member
    PartnerNOC

    Joined:
    Oct 18, 2003
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Hosting from: Panama, Hong Kong, Singapore, Malays
    I just had a similar error. I found some trailing white spaces after /tmp

    I just took those out. I am unsure how they got there in the first place.
     
  6. jamiemcd

    jamiemcd Registered

    Joined:
    Aug 29, 2005
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    This same problem happened to me. I was suddenly getting session errors. I'm glad I found this.

    It started right after I used the new PHP Configuration Editor in WHM. For session.save_path make sure it is /tmp with no trailing white spaces. Prior to version 11, I used to just manually edit the php.ini file. So when WHM imported it the first time into the new PHP Configuration Editor, maybe it added the trailing spaces??
     
  7. Wallaby

    Wallaby Well-Known Member

    Joined:
    Aug 15, 2001
    Messages:
    131
    Likes Received:
    1
    Trophy Points:
    18
    It seems that session.save_path is not getting set when PHP builds are being done.

    We've found this on new servers with PHP 5 installed (Apache 2.2), and when upgrading older sersvers from PHP4/Apache 1.3 to PHP5/Apache 2.2 (where the PHP4 configuration did have session.save_path set correctly).

    Looks like another bug in EasyApache?
     
Loading...

Share This Page