Difference between revisions of "Session save path"
From Joomla! Documentation
m (Removing Under construction - last edit 2008! - Added inuse so I can expand) |
(Should this be deleted? It's Joomla 1.0 specific?) |
||
Line 1: | Line 1: | ||
− | {{cookiejar | + | {{cookiejar}} |
− | Session save path | + | |
+ | |||
+ | When installing Joomla! or visting Global Configuration (some extensions may also display this information) you may see a warning about Session save path being unwriteable. This means that the directory used to save information relating to a logged-in user's session cannot be written into - preventing the necessary data from being stored. | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | == Joomla 1.0 == | ||
+ | |||
+ | Generally this means that the user running the webserver's process (often a user called Apache) is unable to store files in the directory. This error should not be caused by this issue in later versions of Joomla! as sessions are saved to a folder within the Joomla directory structure. | ||
+ | |||
+ | |||
+ | |||
Solution: | Solution: | ||
+ | |||
+ | '''Windows''' | ||
+ | |||
Find the file php.ini, this is located in the same director as the installation of PHP | Find the file php.ini, this is located in the same director as the installation of PHP | ||
Line 10: | Line 26: | ||
session.save_path="C:\DOCUME~1\username\LOCALS~1\Temp\php\session" | session.save_path="C:\DOCUME~1\username\LOCALS~1\Temp\php\session" | ||
− | We need to make this directory writable C:\DOCUME~1\username\LOCALS~1\Temp\php\session. | + | We need to make this directory writable C:\DOCUME~1\username\LOCALS~1\Temp\php\session. for the user. |
+ | |||
+ | |||
+ | '''Linux''' | ||
+ | |||
+ | |||
+ | On Linux Systems the php.ini will probably use /var/lib/php/session folder. | ||
+ | |||
+ | How you update the permissions on this folder is entirely dependant on the setup of your server. If you use SuExec (so processes are run by different users) the easiest way is to ensure that all relevant users are in a user group and then assign the group permissions | ||
+ | |||
+ | chgrp /var/lib/php/session | ||
+ | chmod g+w /lib/php/session | ||
+ | If it's only ever the apache user that runs your serving processes, you can simply change the permissions to ensure that the folder is owned by the apache user | ||
− | + | chown apache /var/lib/php/session | |
− | |||
− | |||
− | |||
− |
Revision as of 06:44, 2 October 2012
This article is a small, well-defined item that could be completed by someone with a reasonable knowledge of the subject matter and a modest time commitment. If you would like to try writing this article you're welcome to do so.
The subject may be self-evident, but if not then further details should be available on the discussion page. Please add {{inuse}} at the top of this page while editing. For other small, well-defined tasks, please look in the Cookie jar. ---Thank you. This article was last edited by BenTasker (talk| contribs) 11 years ago. (Purge) |
When installing Joomla! or visting Global Configuration (some extensions may also display this information) you may see a warning about Session save path being unwriteable. This means that the directory used to save information relating to a logged-in user's session cannot be written into - preventing the necessary data from being stored.
Joomla 1.0[edit]
Generally this means that the user running the webserver's process (often a user called Apache) is unable to store files in the directory. This error should not be caused by this issue in later versions of Joomla! as sessions are saved to a folder within the Joomla directory structure.
Solution:
Windows
Find the file php.ini, this is located in the same director as the installation of PHP
Open the file in a text editor and find session.savepath, this will look like :
session.save_path="C:\DOCUME~1\username\LOCALS~1\Temp\php\session"
We need to make this directory writable C:\DOCUME~1\username\LOCALS~1\Temp\php\session. for the user.
Linux
On Linux Systems the php.ini will probably use /var/lib/php/session folder.
How you update the permissions on this folder is entirely dependant on the setup of your server. If you use SuExec (so processes are run by different users) the easiest way is to ensure that all relevant users are in a user group and then assign the group permissions
chgrp /var/lib/php/session chmod g+w /lib/php/session
If it's only ever the apache user that runs your serving processes, you can simply change the permissions to ensure that the folder is owned by the apache user
chown apache /var/lib/php/session