Fix Session Save Path Red Unwritable When Installing Joomla!
When installing Joomla version 1.0.x or Mambo CMS (Content Management System) using web browser, the web based Joomla! installer pre-installation check screen displayed Not set, Unwritable in red for session save path parameter, indicating that the session save path is not defined in PHP.INI configuration file, not configured with correct permission or does not exist. If you continue installation, Joomla! still install but users will facing symptoms such as only can login to the front end but not the administrator backend, with the login process jumped back to login screen without any message such as incorrect user name or password.
The cause for the Unwritable message for PHP session save path is pretty straight forward, that’s Joomla! installer unable detects any value set for session save path. To fix and solve the problem simply configure the session save path variable in the web server environment, so that session save path will be shown as Writable when Joomla! installer re-check the environment. Depending on the web hosting service you used, there are several possible solutions as listed below.
Define session.save_path directive in PHP.INI
If you have root access or control to the web host (for example, in VPS or dedicated server), edit the PHP.INI PHP configuration file in the web server to add in the environment variable. Normally the session.save_path directive is already included in the default PHP.INI, but been commented out. Add or edit the line so that it looks like below:
session.save_path = /tmp
Modify /tmp to the path to a folder that is writable by Apache web server process. If you don’t have shell access to the web host, such as in shared hosting, try asking hosting service provider to include the session save path parameter, or make the path writable.
Include session.save_path in .htaccess file
If you can’t modify PHP.INI global configuration file, or just want to make the change affect Joomla! or Mambo application only, create or edit the .htaccess file in the installation directory for Joomla! or Mambo, and add the following line (only works in Apache web server which configured to support .htaccess - most cPanel hosts do):
php_value session.save_path '/tmp'
Change the ‘/tmp’ to a folder that is writable and prefer to be a session saved folder by you which has been created first. The trick above should work if PHP is runing as a server module (ISAPI), which most did, and not as CGI mode.
Use Local PHP.INI in the Joomla/Mambo folder
If PHP is being run as CGI mode on the web server, or method above using .htaccess does’t work, try override the main global PHP.INI settings by using a localized PHP.INI file which located in the each and every directories for the application. However, the disadvantage is that users have to create lots of PHP.INI files as the override will be on folder by folder basis - those with local PHP.INI will be overrode, but not its parent or child sub-folders. This means that each folder that contains an executable PHP scripts must have its own PHP.INI file, such as in main root Joomla directory, /administrator/ folder and etc.
To configure the PHP override, create a PHP.INI on the folder(s) inside Joomla! directory, and add the setting in following format:
session.save_path = /tmp
Replace the /tmp with the path that you want to use as the session saved path.
Use ini_set(variable, value) to override session.save_path in Globals.php file
If nothing mentioned above you can do, then try to edit globals.php file comes with Joomla. Firstly create a writable folder, and then edit the globals.php in root Joomla! directory. Add in the following line at the top, right after <?php line:
ini_set('session.save_path','/tmp');
Change ‘/tmp’ to full path to the writable directory created. Then edit the following parameter. Look for:
define( 'RG_EMULATION', 1 );
Edit and change the line to:
define( 'RG_EMULATION', 0 );
Save the globals.php file.
Add session save path parameter into Joomla’s PHP code
If it’s impossible to change PHP.INI or add .htaccess, try to create a writable directory, recommended to be a directory named ’sessions’ inside $mosConfig_absolute_path folder which can be retrieved from the configuration.php itself, then add the following line in configuration.php file of Joomla!.
session_save_path('public_html/session');
Change ‘public_html/session’ to the actual path to the writable directory created. Note that if you modify and change any Global Configuration settings in Joomla, the line above will be lost as the configuration.php file get rewritten. In the case, remember to replace back the hack above.
Add php_value for session.save_path in httpd.conf Apache configuration file
Create a writable directory that can be accessed by Apache service, and then edit the Apache configuration file of httpd.conf. Add the following line to the bottom of the file:
php_value session.save_path "C:\Temp\"
Change the path “C:\Temp\” to the path to the folder created. Save the configuration file, and then restart Apache HTTPD service.
Note: A lot has been saying about writable folder. In some cases, depending on owner and group, you may have to set the permissions to 777 (full read, write and execute) in order for Apache to be able to write into the directory.
Above resolutions should work for both Linux, FreeBSD, Unix and Windows based web server. However in Windows, you may need to specify drive letter to the path. For example, ‘/tmp’ will be ‘C:/tmp’ in Windows. It’s also recommended to use forward slash (/) in the path to the folder instead of usual backslash (\).
Share and contribute or get technical support and help at My Digital Life Forums.
Related Articles
- Joomla Direct Access to This Location Is Not Allowed Error
- How to Enable Legacy Mode in Joomla! 1.5
- Remove Red Eye In Adobe Photoshop
- Reveal, Copy and Get File Full Path with Copy as Path in Windows Vista
- Fix Error 1603 When Installing Intuit Quickbooks 2007
- Fix for Munin MySQL Monitoring Plugin Graph Not Showing or Blank
- Oracle Database Link
- Enable Google’s New Search Results Interface
- Nikon Coolpix S9 Reviews
- Refresh Linux or Unix Path Environmental Variables with rehash

































December 1st, 2007 02:31
That was very helpfull thank you..
December 7th, 2007 14:05
Very informative and solved my problem in a jiffy.
Thank you
January 1st, 2008 09:44
Thank you it was so helpful and did solve the problem I had.
January 26th, 2008 00:22
[...] RESOLUTION: ( link to original resolution here) ( link to more detailed explanation here) [...]
February 9th, 2008 13:05
omg- ur article truly just helped me!!! Thank you SO SO SO VERY MUCH!!!
March 14th, 2008 15:35
Wich of all this php.ini I need to edit the lines ?
/usr/local/cpanel/3rdparty/etc/phpmyadmin/php.ini
/usr/local/cpanel/3rdparty/etc/php.ini
/usr/local/cpanel/3rdparty/etc/horde/php.ini
/usr/local/cpanel/3rdparty/etc/phppgadmin/php.ini
/usr/local/lib/php.ini
/usr/lib/php.ini
March 19th, 2008 05:39
This article was a lifesaver! I have been trying to figure this out for hours.I couldn’t get my Joomla Stand Alone Server to work but your notes worked! Thanks a bunch!
April 17th, 2008 19:29
Had this problem for 4 days until i came across this article… Thanx a million, this has really helped me.
April 17th, 2008 21:15
dear admin
special thanks for this tutorial.
see u
April 21st, 2008 23:33
Adding the path info to configuration.php worked out.
I wanted to point out that in order to find the host’s local route to my account I used the following:
May 5th, 2008 19:10
[...] without a session save path? Fix Session Save Path Red Unwritable When Installing Joomla! - Fix Session Save Path Red Unwritable When Installing Joomla! My Digital Life [...]
May 11th, 2008 17:40
It is indeed cleaner to have the session directory being green in Joomla instead of red (unwritable).
The strange thing is that my site still works fine without the session directory being writable.
May 15th, 2008 13:18
muchos gracias. this helped a lot.
June 21st, 2008 18:34
excellent post. helped a lot as the joomla docs/wiki or forum did not have enough info this major issue. Joomla creators can learn a lot from u.
Thanks
September 1st, 2008 03:31
Thank you
Worked like a charm