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 save path in php.ini commented

Discussion in 'General Discussion' started by 4u123, Mar 23, 2007.

  1. 4u123

    4u123 Well-Known Member
    PartnerNOC

    Joined:
    Jan 2, 2006
    Messages:
    765
    Likes Received:
    1
    Trophy Points:
    18
    Hi, Can someone please advise if its OK to uncomment the session save path in php.ini ? Its set to /tmp which is where sessions should be saved anyway but for some reason it is commented out by default. (php5)

    Is it safe to simply uncomment it ?
     
  2. guysmiley

    guysmiley Member

    Joined:
    Sep 6, 2008
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    I have the same question... Should this not accelerate php? I question it only because the default WHM configuration has no defined session save path.

    Anyone?
     
  3. Ghulam Yaseen

    Ghulam Yaseen Well-Known Member

    Joined:
    Mar 14, 2008
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Karachi,Pakistan
    Yaseen

    Hello :),

    session.save_path = /tmp ( this means that session file will be rewritable)
    uncomment this if you are installing the joomla like module of php and do not fear of setting things like this:cool:

     
  4. guysmiley

    guysmiley Member

    Joined:
    Sep 6, 2008
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    I think you misunderstand.

    The master php session save path, as specified in WHM, is 'N;/path'. Does this mean it's disabled? Is this right?
     
  5. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    No, this means the default value is being used. Remember, this configuration entry can take the form of <numerical value>;<path> (without the angle brackets, of course).
     
  6. neorder

    neorder Well-Known Member

    Joined:
    Jun 16, 2003
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    so we should or shouldn't not comment it out "session.save_path = /tmp"?

    we've got many this errors:

     
  7. jols

    jols Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,111
    Likes Received:
    2
    Trophy Points:
    38
    I would like to know this as well. Apparently our hosted members can not install SugarCE because the installation process dies on:

    Session Save Path Setting The session.save_path setting in your php configuration file (php.ini) is not set or is set to a folder which did not exist.

    So, if we simply uncomment the value in question in the server's global php.ini file I think they will be able to get past this point in the installation process, BUT, will it cause other errors on the server if we do this?
     
  8. 4u123

    4u123 Well-Known Member
    PartnerNOC

    Joined:
    Jan 2, 2006
    Messages:
    765
    Likes Received:
    1
    Trophy Points:
    18
    The answer is that its a standard php.ini file default setting. By default PHP will use /tmp anyway if this is commented out. Some software requires that the path be specifically set - in which case just uncomment it. At the end of the day - you should set it to whatever you want it to be. It does no harm to uncomment that entry and set it specifically to /tmp.
     
  9. jols

    jols Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,111
    Likes Received:
    2
    Trophy Points:
    38
    Okay, so I assume that if I do this, it will not mess up other script packages that use other-than-the-default to store session files?
     
  10. 4u123

    4u123 Well-Known Member
    PartnerNOC

    Joined:
    Jan 2, 2006
    Messages:
    765
    Likes Received:
    1
    Trophy Points:
    18
    The changes you make to the php.ini on the server are global. Sites on your server can only use the setting provided in php.ini unless they are using an ini_set overrride or a php.ini of their own.

    PHP itself will always default to /tmp if you dont specify the session save path - i.e it is commented out. Therefore all sites on your server will use /tmp by default. If you specify /tmp instead of commenting it out - all sites will still use /tmp. They can only use an other-than-the-default setting if they are overriding the main php.ini in which case they will only be changing their own settings anyway.
     
  11. jols

    jols Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,111
    Likes Received:
    2
    Trophy Points:
    38
    Okay cool. So if I have all this straight, then no-harm-done either way (?).
     
Loading...

Share This Page