Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

php 5.4 cPanel

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

  1. kodyxgen

    kodyxgen Active Member

    Joined:
    Jul 9, 2013
    Messages:
    27
    Likes Received:
    2
    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?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,409
    Likes Received:
    1,955
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. kodyxgen

    kodyxgen Active Member

    Joined:
    Jul 9, 2013
    Messages:
    27
    Likes Received:
    2
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice