Portal Home > Knowledgebase > Articles Database > change session.save_path to /home/user/tmp and give permissions how?


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




Posted by sharmaine1111, 12-29-2009, 03:26 PM
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 with cPanel

Posted by DigitalLinx, 12-29-2009, 06:48 PM
Not from the global php.ini but local php ini file for each vhost, just edit the session.save_path variable to match the user's directory. But I do not believe there is an automated way of doing this unless you put some script together.

Posted by activelobby4u, 12-30-2009, 04:59 AM
You should use a script to achieve this . Simply place a php.ini file in all home directories with the parameter session.save_path

Posted by linux_crazy, 12-30-2009, 02:25 PM
first of all copy the global php.ini to your public_html directory one done edit it. Make sure the path in phpinfo page is your home directory.

Posted by sharmaine1111, 12-30-2009, 11:49 PM
Is there a way to do this automatically when cpanel account is created?



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Reseller.biz quality? (Views: 737)


Language: