Support

Akeeba Backup for Joomla!

#8753 Session write path error

Posted in ‘Akeeba Backup for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Akeeba Backup version
n/a

Latest post by nicholas on Tuesday, 29 March 2011 15:39 CDT

user126
Hi,

I asked my host to set up the session write path so that it's writable. But now I get this error: -

=========================
Your session write path and the installation directory are not writable. One of them must be writable for the installation to continue.

Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/var/lib/php5) is not within the allowed path(s): (/var/www/vhosts/######index.com/httpdocs:/tmp) in /var/www/vhosts/######index.com/httpdocs/installation/includes/storage.php on line 51
==========================

Can someone advise on this please?

Regards

nicholas
Akeeba Staff
Manager
No, your host blew it. Let's look at the line which throws the error:
if(is_writable(ini_get('session.save_path')))

It gets the session save path from the php.ini settings and checks if it's readable. According to the error message you get, your host set the session write path to be the system wide /var/lib/php5 directory. Sure thing, they changed this directory's permissions. But then, they forgot they had set up open_basedir restrictions in their user's account, meaning that the system-wide directory is, of course, unwritable...

Just tell your host that they MUST add /var/lib/php5 to their open_basedir restrictions settings so that your account can work.

If they can't do that, just give 0775 or 0777 permissions to the installation directory and retry accessing the restoration script as http://www.yoursite.com/installation/index.php. This is workaround also documented in our Quick Start Guide.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user30145
Nicholas,

I seem to be having a similar problem (see attachment). What should I ask the host to do in order to fix that?

Thank you.

nicholas
Akeeba Staff
Manager
Please ask them to modify the session save path for your account so that it is in a writable directory, not restricted by open_basedir restrictions.

As a temporary alternative, you may try to give broader permissions (like 0775 or 0777) to the installation directory once it's extracted, i.e. just before clicking the "Run the installer" button in Kickstart.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user30145
Thank you for your help, Nicholas, and thanks for the software.

nicholas
Akeeba Staff
Manager
You're welcome!

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user35249
Please help me... I cant pass by this error: PHP Warning: is_writable() [<a href='function.is-writable'>function.is-writable</a>]: open_basedir restriction in effect. File(C:\Program Files (x86)\PHP52\sessiondata) is not within the allowed path(s): (E:\Domains\gpamanaus.org) in E:\Domains\gpamanaus.org\wwwroot\installation\includes\storage.php on line 51

please help me...

nicholas
Akeeba Staff
Manager
You could have saved some time by taking a peek at the Troubleshooting Wizard which appeared before posting here. This is really a hosting configuration problem, but we provide a few workarounds which usually work. Please read the instructions on this page first. If that doesn't work, you'll have to ask your host to fix the wrong PHP session save path setup on their server.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!