I'm trying to install ajaxplorer at a shared hosting in my home folder. When I navigate to the main page, I get an error:
is_writable(): open_basedir restriction in effect.
File(/var/lib/php5) is not within the allowed path(s):
(/var/www//username/:/usr/sbin/sendmail:/usr/share/php
:/home/www/appname::/usr/share/pear:/dev/urandom)
What might be the cause? How could I fix it?
There is php 5.3.3 installed, apache 2.2.16. I use ajaxplorer 4.0.4.
EDIT:
The problem is caused by this code part:
$tmpDir = session_save_path(); $this->testedParams["Session Save Path"] = $tmpDir; if($tmpDir != ""){ $this->testedParams["Session Save Path Writeable"] = is_writable($tmpDir);
Error appears in the last line, but I enclosed the context.
Best Answer
Can you try adding this to the top of the file:
If that works, you'll need to put it in a file that will be included by all other files for good measure (such as a configuration one where you specify your database details).
Alternatively, you can try adding a .htaccess flag or custom PHP.ini (former if you are using suPHP, latter if you are not). But let's try this first and see what happens.
AUTHOR'S EDIT:
Finally I had to put:
in the conf/bootstrap_context.php file and it helped.