FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Joomla (Sessions Unwritable)

 


smokey4life
Hello, i am using Joomla! 1.0.13 Stable and i have never had this problem before so not exactly sure what to do. For some reason i keep getting this error message in my permissions information
"Session Directory / Unwriteable" it shows that there is no sessions path name set at all and it displays that it is unwriteable?? What can i do to correct this problem? Thanks again for your help.
Ecthelion
Looks like you will have to chmod a directory to allow joomla to write in it.

I'm not sure but I think the session path is usually a directory called "cached" or something.
Just go in directadmin and make sure it has the correct permission. (I think it should be 755 )
smokey4life
Well, it shows the cache directory separately from the sessions directory and it shows that no directory set for sessions, it just says sessions then for the path it shows blank / and says its unwriteable i thought it was the cache folder as well then i took another look at it and noticed that my cache directory is already set to 777 am i missing a folder somewhere?
smokey4life
Alright, well im guessing that this sessions stuff doesnt really effect anything that i can tell so far anyways. It still shows i have no directory set for this and it still says unwriteable but yet i can login and register and everything. Does anyone know anything about this? I don't want to have problems later on down the road or if it doesn't matter at all at least it would put my worries to rest. It just bugs me having something that is functioning properly. Thanks again!
Blix
It doesn´t affect your site, but can get annoying.
Just create a folder, call it session and add the following line to your configuration.php
Code:

$mosConfig_session_save_path = '/path to your session folder/session';
smokey4life
Blix wrote:
It doesn´t affect your site, but can get annoying.
Just create a folder, call it session and add the following line to your configuration.php
Code:

$mosConfig_session_save_path = '/path to your session folder/session';


Alright great! and thanks for the help, another question, does it matter where i place this directory for the sessions at? Or just throw it in right along with the rest of everything in the root directory?
smokey4life
hmm.. well i created a directory and called it session chmod it to 777 so that it is writeable and put the full session path same as cache so that i know it is correct and it still shows that that directory is unwriteable when i go to my info in my joomla backend i dont get it??? As you said it doesnt really affect anything but im guessing that that is the reason why im being logged out all the time instead of it remembering me like it should which is the purpose for this session directory?? Anyways any other ideas?
smokey4life
I STILL have not been able to correct this problem is there anyone here smart enough to help me with this problem? I created the directory made damn sure it was writeable and added the pathway to the config.php file and still i get the error message in my joomla back-end info... Should i just leave it alone and say screw it?
smokey4life
Ok so it seems from what im hearing on the joomla forums that this is due to the hosting not having the sessions save path set in the php.ini file i checked into it and i seen that its set to
"session.save_path no value" so that would be my guess thats the problem!! But i dont know what to ask it be changed to cause i dont know what it requires anyone have any clue?
smokey4life
Ok, well so far i have found that without this working correctly it can be quite annoying! Its logs you off your site all the time which is very frustrating while your in the middle of doing something. I have still not been able to get any help on this matter and the only people i have seen around forums that have had this same problem all said they corrected this problem by doing what i mentioned in my previous post, getting the "session.save_path" changed in the php.ini Has anyone had this same problem on their joomla within frihost? I need to find someone smart enough to help me fix this problem badly. I have requested to get that line changed in my php.ini but im not exactly sure what to change it to so if anyone could help me out on this one i would appreciate it thanks again.
devotchka
Indeed, it is more likely they do not have the folder.

If it is running on Apache, try creating the sub-folder called sessions in the same folder as the configuration.php file (root)
CHMOD it and then add the path to your session folder to the session_save_path variable (you may add the variable right under $mosConfig_absolute_path. For example:

blahblahblah...
$mosConfig_absolute_path = '/your/pathtosessionfolder/www';
session_save_path('/your/pathtosessionfolder/www/session');

Also, set session path in your php.ini

session.save_path =/your/pathtosessionfolder/www/session"

If that doesn't work, you need to ask your host to create and/or make the session_save_path writable for you. Would be the best solutio (painless I hope, some hosting companies can be a pita with some restrictions on server to force you move to a dedicated).
Good luck!
Reply to topic    Frihost Forum Index -> Scripting -> Website Software

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.