Results 1 to 11 of 11

Thread: Session save path in php.ini commented

  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jan 2006
    Posts
    681

    Default Session save path in php.ini commented

    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. #2
    Member
    Join Date
    Sep 2008
    Posts
    19

    Default

    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. #3
    Member
    Join Date
    Mar 2008
    Location
    Karachi,Pakistan
    Posts
    49

    Default 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

    Quote Originally Posted by 4u123 View Post
    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 ?

  4. #4
    Member
    Join Date
    Sep 2008
    Posts
    19

    Default

    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. #5
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,307
    cPanel/WHM Access Level

    Root Administrator

    Default

    Quote Originally Posted by guysmiley View Post
    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?
    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. #6
    Member
    Join Date
    Jun 2003
    Posts
    55

    Default

    so we should or shouldn't not comment it out "session.save_path = /tmp"?

    we've got many this errors:

    PHP Warning: PHP Startup: mm_create(0, /session_mm_cgi585) failed, err mm:core: failed to open semaphore file (Permission denied) in Unknown on line 0

  7. #7
    Member
    Join Date
    Mar 2004
    Posts
    973

    Default

    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. #8
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jan 2006
    Posts
    681

    Default

    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. #9
    Member
    Join Date
    Mar 2004
    Posts
    973

    Default

    Quote Originally Posted by 4u123 View Post
    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.
    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. #10
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jan 2006
    Posts
    681

    Default

    Quote Originally Posted by jols View Post
    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?
    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. #11
    Member
    Join Date
    Mar 2004
    Posts
    973

    Default

    Okay cool. So if I have all this straight, then no-harm-done either way (?).

Similar Threads

  1. session save path suddenly changed for all to a users tmp folder
    By jeroman8 in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 06-15-2008, 03:06 PM
  2. sessions save path in php.ini
    By NoAgendas in forum cPanel & WHM Discussions
    Replies: 7
    Last Post: 05-27-2007, 11:59 PM
  3. Session save path
    By chmod root in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 10-24-2006, 06:02 AM
  4. php.ini path?
    By mitk in forum New User Questions
    Replies: 2
    Last Post: 02-02-2006, 01:29 PM
  5. Save php.ini
    By mnett in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 12-06-2003, 05:02 PM