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

sharmaine001

Well-Known Member
Jun 23, 2006
143
0
166
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
 

forum17

Active Member
Mar 30, 2007
29
0
151
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