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.

change session.save_path to /home/user/tmp and give permissions how?

Discussion in 'General Discussion' started by sharmaine001, Dec 29, 2009.

  1. sharmaine001

    sharmaine001 Well-Known Member

    Joined:
    Jun 23, 2006
    Messages:
    143
    Likes Received:
    0
    Trophy Points:
    16
    is there a way to change the global php.ini file to save the sessions to /home/{USER}/tmp instead of /tmp directory? I am running suphp + suexec so it should also be able to have correct read and write permission for that user.

    Can someone help me achieve this? Im using CentOS 5.x
     
  2. Nick57

    Nick57 Well-Known Member

    Joined:
    Jul 19, 2005
    Messages:
    100
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Hi,

    Did you find a solution for this, because I would like to have this changed as well for same reason.

    Thank you
     
  3. forum17

    forum17 Active Member

    Joined:
    Mar 30, 2007
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    0
    Hello,

    If you are using suphp with suexec then do following steps.
    Copy server's php.ini in public_html folder then set variable as given below:

    session.save_path = /home/user/tmp

    Don't forget to add code in .htaccess located in public_html as given below:

    SetEnv PHPRC "/home/user/public_html"

    regards,
    hostt.co.in
     
Loading...

Share This Page