Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Jun 2006
    Posts
    146

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

    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. #2
    Member
    Join Date
    Jul 2005
    Posts
    37

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

    Hi,

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

    Thank you

  3. #3
    Member
    Join Date
    Mar 2007
    Posts
    29

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

    Quote Originally Posted by sharmaine001 View Post
    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
    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

Similar Threads & Tags
Similar threads

  1. /tmp/ writeable and chmod of /home/user/tmp/
    By khorinis in forum cPanel and WHM Discussions
    Replies: 13
    Last Post: 09-11-2010, 08:37 AM
  2. Skeleton for /home/user/tmp
    By grayloon in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 12-04-2007, 08:46 AM
  3. /home/user/tmp
    By hostmedic in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-13-2006, 10:11 PM
  4. /home/user/tmp < what is this?
    By screege in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 07-31-2005, 03:23 PM
  5. Out of control = user session files in /tmp !
    By garak in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-07-2004, 09:33 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube