Page 1 of 1
Working PHP sessions
Posted: Thu Oct 25, 2007 12:14 pm
by otti
I'm new to CMSMS and finished installation successfully, excpet the "seesion.save_path" problem. If I read correctly on this forum and after a bit of research, it seems my only chance is to ask the hosting provider to make the sessions writable.
What will I do, if they won't/can't do it? Wait until hosting expires and change provider? Is there any other way to access php.ini?
Thanks very much
otti
Re: Working PHP sessions
Posted: Thu Oct 25, 2007 2:22 pm
by Pierre M.
Hello,
a PHP hosting provider provides working PHP sessions. Or nobody would pay.
One of my hosters provides it out of the box.
Another required me to create a 777-chmoded "sessions" folder in my w3 root folder. May be you need to know this name by your hoster ?
Of course, I never had access to the php.ini.
Pierre M.
Re: Working PHP sessions
Posted: Fri Oct 26, 2007 6:35 am
by otti
Hi Pierre,
I spoke to the hosting provider. They tell me the only way to get around this problem is to write to mod_rewrite function in the php.ini. They supplied me with a php.ini file and asked me to add this function. Once I added the function (so, they tell me), it should overwrite their original php.ini. I searched the net but I'm a bit lost since I'm a php beginner. Can you point me in the right direction please?
I can't believe I would not be able to use CMSMS because of such a small thing.....
Thanks very much again
otti
Re: Working PHP sessions
Posted: Fri Oct 26, 2007 11:45 am
by Pierre M.
otti wrote:
I spoke to the hosting provider. They tell me the only way to get around this problem is to write to mod_rewrite function in the php.ini.
I don't understand. mod_rewrite has nothing to do with PHP sessions. This smels bad. I'd look for a PHP hosting provider.
Pierre M.
Re: Working PHP sessions
Posted: Fri Oct 26, 2007 11:00 pm
by otti
Hi Pierre,
Here is what they said exactly:
"...now you have the php.ini file what you are going to want to do is turn on the mod rewrite
function. Depending on what your trying to do specifically you will need
to write your own script as this is not something that we can write for you."
I guess they are trying to tell me, that I have to write a "rewrite" function into the supplied php.ini file to overwrite their existing php.ini file. They probably think, that I would be able to set the session.save_path in the new php.ini to some value, since it is on "NO VALUE" ate the moment according to php.info(). Would this be possible???
I don't know if I can convince my client to swap the hosting provider.
Thanks very much again
otti
Re: Working PHP sessions
Posted: Sat Nov 03, 2007 12:20 am
by Elijah Lofgren
otti wrote:
I'm new to CMSMS and finished installation successfully, excpet the "seesion.save_path" problem. If I read correctly on this forum and after a bit of research, it seems my only chance is to ask the hosting provider to make the sessions writable.
What will I do, if they won't/can't do it? Wait until hosting expires and change provider? Is there any other way to access php.ini?
Thanks very much
otti
I had the "Failed to write session data (files)" error and was able to fix it by following the workaround described here:
Re: session.save_path problem Hope this helps
