session.save_path errors when beginning install
- kerryshamblin
- Forum Members
- Posts: 87
- Joined: Wed Apr 14, 2010 5:21 pm
Re: session.save_path errors when beginning install
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
Set the path in php.ini to tmp/cache
You may need to write it as the full document root.
You may need to write it as the full document root.
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: session.save_path errors when beginning install
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 *}
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 *}
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
- kerryshamblin
- Forum Members
- Posts: 87
- Joined: Wed Apr 14, 2010 5:21 pm
Re: session.save_path errors when beginning install
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!
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
ask them what the server path is.
- kerryshamblin
- Forum Members
- Posts: 87
- Joined: Wed Apr 14, 2010 5:21 pm
Re: session.save_path errors when beginning install
Thanks, applejack. I found it in the GD account manager. Installation complete. And thanks, Calguy, for all of your good deeds.