session.save_path errors when beginning install

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
User avatar
kerryshamblin
Forum Members
Forum Members
Posts: 87
Joined: Wed Apr 14, 2010 5:21 pm

Re: session.save_path errors when beginning install

Post 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.
applejack
Power Poster
Power Poster
Posts: 1014
Joined: Fri Mar 30, 2007 2:28 am

Re: session.save_path errors when beginning install

Post by applejack »

Set the path in php.ini to tmp/cache

You may need to write it as the full document root.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: session.save_path errors when beginning install

Post 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 *}
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.
User avatar
kerryshamblin
Forum Members
Forum Members
Posts: 87
Joined: Wed Apr 14, 2010 5:21 pm

Re: session.save_path errors when beginning install

Post 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!
applejack
Power Poster
Power Poster
Posts: 1014
Joined: Fri Mar 30, 2007 2:28 am

Re: session.save_path errors when beginning install

Post by applejack »

ask them what the server path is.
User avatar
kerryshamblin
Forum Members
Forum Members
Posts: 87
Joined: Wed Apr 14, 2010 5:21 pm

Re: session.save_path errors when beginning install

Post by kerryshamblin »

Thanks, applejack. I found it in the GD account manager. Installation complete. And thanks, Calguy, for all of your good deeds.
Locked

Return to “[locked] Installation, Setup and Upgrade”