Page 1 of 1
Re: session.save_path errors when beginning install
Posted: Tue Mar 27, 2012 1:29 am
by kerryshamblin
Just wondering if you ever found a solution to this. About to convince the client to move away from GoDaddy. I could have had the system installed, modules set up and templates built in the time I've been trying to debug this.
Re: session.save_path errors when beginning install
Posted: Mon Apr 02, 2012 9:37 pm
by applejack
Set the path in php.ini to tmp/cache
You may need to write it as the full document root.
Re: session.save_path errors when beginning install
Posted: Mon Apr 02, 2012 10:24 pm
by calguy1000
Depending on the website and what is going on, you may NOT want to set the session save path to tmp/cache.
Why: All users session information will be stored there.
Any time you clear the cache you would essentially be killing all of your users sessions. This would probably NOT be a good thing to do if you're working on a live e-commerce site for example.
Instead you should create another directory that the web server can write to, and set the session save path there.
i.e: mkdir tmp/sessions
chmod 777 tmp/sessions {* may not be necessary *}
php_value session.save_path "/path/to/my/website/tmp/cache" {* syntax not checked *}
Re: session.save_path errors when beginning install
Posted: Tue Apr 03, 2012 9:52 pm
by kerryshamblin
Thanks for the suggestions. I created a directory /tmp/sessions/ with 777 permissions. I created a php5.ini file that contains
session.save_path = "/cms/tmp/sessions/"
Now I get a different but similar set of errors.
Warning: Unknown: open(/cms/tmp/sessions//sess_ced4011a40a5a3954dba7f0c1cc6cd1f, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/cms/tmp/sessions/) in Unknown on line 0
It seems the GoDaddy hosting account makes your home directory /, so there is no server path that I can find. Any other ideas?
Thank you!
Re: session.save_path errors when beginning install
Posted: Tue Apr 03, 2012 11:10 pm
by applejack
ask them what the server path is.
Re: session.save_path errors when beginning install
Posted: Wed Apr 04, 2012 3:09 am
by kerryshamblin
Thanks, applejack. I found it in the GD account manager. Installation complete. And thanks, Calguy, for all of your good deeds.