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.

php 5.4 cPanel

Discussion in 'General Discussion' started by kodyxgen, Jul 10, 2013.

  1. kodyxgen

    kodyxgen Member

    Joined:
    Jul 9, 2013
    Messages:
    20
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    Hello,
    i am using php 5.4 on cPanel put for some reason after converting too php5.4 from php5.3 i have an error in the log file PHP Warning: session_write_close(): Failed to write session data (user). for my joomla 2.5 site

    Can you help me?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Please confirm if the "session.save_path" value is set to "/tmp" in your /usr/local/lib/php.ini file with a command such as:

    Code:
    grep session.save_path /usr/local/lib/php.ini
    Then, check the ownership/permissions on the /tmp directory:

    Code:
    stat /tmp
    It should be owned by "root" and configured with "1777" permissions. Also, make sure it's not full:

    Code:
    df -h
    df -i
    You should be able to create a new file within it:

    Code:
    touch /tmp/cptest123
    Thank you.
     
  3. kodyxgen

    kodyxgen Member

    Joined:
    Jul 9, 2013
    Messages:
    20
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    The session.save_path is /tmp.
    I will try your solution. For now a just deactivated Suhosin in php and it is ok.

    Thanks
     
Loading...

Share This Page