Jump to content

Recommended Posts

Posted

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

Posted
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.
Posted

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. ;)

Posted

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?

Posted

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. :)

Posted

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

Posted

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

Posted

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. :)

Posted

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.

Posted

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)

Posted (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 by apoth0r
Posted

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. :)

Posted

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.

Posted

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

Posted

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,

  • Thanks 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...