ajaxplorer:有效的open_basedir限制

我试图安装ajaxplorer在我的家庭文件夹共享托pipe。 当我导航到主页面时,出现错误:

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) 

可能是什么原因? 我怎么解决它?

PHP 5.3.3安装,Apache 2.2.16。 我使用ajaxplorer 4.0.4。

编辑:

这个问题是由这个代码部分引起的:

 $ tmpDir = session_save_path();
 $ this-> testedParams [“会话保存path”] = $ tmpDir;
 if($ tmpDir!=“”){
    $ this-> testedParams [“Session Save Path Writeable”] = is_writable($ tmpDir);

错误出现在最后一行,但我附上上下文。

你可以尝试添加到文件的顶部:

 session_save_path('/tmp'); 

如果这样做,你需要把它放在一个文件中,这个文件将会包含在所有其他文件中,以便于你的数据库的细节。

或者,您可以尝试添加.htaccess标志或自定义PHP.ini(前者如果使用的是suPHP,后者如果不是)。 但是,我们先试试看看会发生什么。

作者的编辑:

最后我不得不说:

 session_save_path(AJXP_INSTALL_PATH."/tmp"); define("AJXP_TMP_DIR", AJXP_INSTALL_PATH."/tmp"); 

在conf / bootstrap_context.php文件,它有帮助。