apoth0r Posted February 19, 2008 Posted February 19, 2008 Hi guys, I've been looking for hours now but i'm completely stumped as to why during the installation of Joomla on my new hosting it is saying that the "Session save path" is "Unwriteable" I've trield many methods to try and resolve this but I still can't find what I'm doing wrong. Has anyone found a resolution for this? Cheers in advance Steve
Geoff Posted February 19, 2008 Posted February 19, 2008 The 'temporary' directory used by your web server to save session files is not writeable by your web server. On my ubuntu web server, this is /tmp which is world read/writeable.
apoth0r Posted February 19, 2008 Author Posted February 19, 2008 I've set everything as full permission just to test, still hasn't sorted it
Geoff Posted February 19, 2008 Posted February 19, 2008 Have you checked what the php session path is set to?
apoth0r Posted February 19, 2008 Author Posted February 19, 2008 Sorry to be a novice, but how do I check that? (sorry if i'm causing any trouble to you) Cheers Steve
Geoff Posted February 19, 2008 Posted February 19, 2008 Look at the 'session' section of your phpinfo page.
apoth0r Posted February 19, 2008 Author Posted February 19, 2008 (edited) It's a hosted site, UK2 business hosting package, linux shared hosting. http://www.uk2.net/web_hosting/ Hope I haven't gone for the wrong hosting "session.save_path no value no value " Edited February 19, 2008 by apoth0r
DarkLight Posted February 19, 2008 Posted February 19, 2008 I haven't used Joomla in awhile; does the installer tell you that the save path is not set, unwriteable or both? Does it tell you what it thinks is the save path? You can change the session save path using the session_save_path('/path/to/joomla/session/folder') PHP function. Some of your Joomla folders will need to be writeable so if it tells you to make them writeable make sure they are.
apoth0r Posted February 19, 2008 Author Posted February 19, 2008 Yes it says "unwritable" and "Not Set" (sorry for the lack of info on that earlier). Within which file do i need to put that code? (session_save_path('/)) in order to provide the server with the information it needs and where is the default joomla session folder located?
DarkLight Posted February 19, 2008 Posted February 19, 2008 Actually, better idea would be to use a .htaccess file. Create a file named .htaccess (just that, as the htaccess bit is the extension and the file has nothing as a prefix - so just ".htaccess") in the same folder as your "upload" folder or whatever you renamed it to. Inside the file type this: php_value session.save_path /path/to/session/folder Where /path/to/session/folder is either something like /tmp or create a directory called sessions in your Joomla upload folder (same folder), give it permissions write permissions and then type in the full path to the folder above. Hope that helps. P.S.: If you get stuck there are probably quite a few articles on Google about the session save path.
apoth0r Posted February 19, 2008 Author Posted February 19, 2008 Anyone out there I can give the access to and have a look at it, i've got a feeling i've screwed something somewhere coz i've completely lost the joomla installation page now. Spent all *bloomin'* day trying to get it to work, and i'm no closer now If anyone has a few mins spare i'd be so appreciative
ZeroHour Posted February 19, 2008 Posted February 19, 2008 I can give you a hand but can you upload a php file with phpinfo(); ?> and pm me the url so I can see whats set up. 1
apoth0r Posted February 19, 2008 Author Posted February 19, 2008 (edited) link to Edited April 9, 2008 by apoth0r
apoth0r Posted February 19, 2008 Author Posted February 19, 2008 I followed the top post on this page, but everytime i saved and uploaded it came up with an error It was too easy the last time i did it for my school Sorry to be a pain all day :s
ZeroHour Posted February 19, 2008 Posted February 19, 2008 So working now? I was about to write some steps for ya after checking "check.php"
apoth0r Posted February 19, 2008 Author Posted February 19, 2008 No sorry, it's still not working mate, exhausted from doing the same thing a million times all day, so much for half term
DarkLight Posted February 19, 2008 Posted February 19, 2008 Usually there will not be a default save path, the software will usually give you one or ask you to enter one. Did you try and create that .htaccess file I explained above? If not, or if you didn't have any success, try /home/northan1/public_html/session as the path for the session save path where a folder session exists in that directory.
apoth0r Posted February 19, 2008 Author Posted February 19, 2008 I tried editing the .htcaccess file with the part you gave me, it just came up with an error page when trying to access the installation part. I've also tried just solely putting in the command on it's own, again no joy.
DarkLight Posted February 19, 2008 Posted February 19, 2008 Out of interest, was the error a 500 Internal Server error or was it something else? Most likely the format for the .htaccess file was wrong, or is not supported by UK2 (Very unlikely)
apoth0r Posted February 19, 2008 Author Posted February 19, 2008 (edited) 500 internal error. Bang on If you can come up with anything, I have to pop out for an hour and a bit so will be back to see your replies. Gonna sort it tonight if it kills me Edited February 19, 2008 by apoth0r
DarkLight Posted February 19, 2008 Posted February 19, 2008 Create a directory in your northan1 folder called sessions Your northan1 folder is the folder that has the public_html in it. CHMOD (change permissions) of the sessions folder to 777. In your public_html folder create a file named .htaccess (make sure it is only .htaccess and not something like .htaccess.htm) and in it put the following: php_value session.save_path /home/northan1/sessions/ Save the .htaccess file. Refresh the Joomla installer page. -- You should find the Joomla installer picks it up. You will also find your phpinfo check.php file has session.save_path of the above path.
apoth0r Posted February 20, 2008 Author Posted February 20, 2008 At any point I use that piece of script, where ever i put it, it causes a Internal Server Error It not only stops the Joomla installation page, it also stops the check.php page.
apoth0r Posted February 20, 2008 Author Posted February 20, 2008 Okay! We're there. Just wanna say a big thanks to everyone that posted and helped me yesterday. The problem with it was that the php_value and php_flag commands are not supported by my hosting (for reasons I am unsure of but shall contact them). So in order to bypass it open your global.php and put ini_set('session.save_path', '/location/of/tmp/folder/'); into the file. It seemed to fix it straight away, a big thank you to ZeroHour for his time on Wednesday morning, very much appreciated mate. How can I donate to edugeek? Thanks again Steve
DarkLight Posted February 20, 2008 Posted February 20, 2008 Well done on getting it sorted. php_value in .htaccess, ini_set() and session_save_path() are three different ways of doing the same thing; I am actually very surprised that UK2 don't allow the php_value keywords in .htaccess. Best Regards, 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now