PHP is_readable returns 在 apache2 上的可读文件上为 false

PHP is_readable returns false on readable file on apache2

无法将旧的 joombla 迁移到另一台服务器,因为 php 无法读取配置文件。 :S

出于测试原因,我制作了这段代码:

clearstatcache();
echo substr(sprintf('%o', fileperms('configuration2.php')), -4);

if(file_get_contents("configuration.php")) echo " trae conent";
else echo " no trae un joraca ";

if (is_readable('configuration.php')) {
  echo 'The file is readable';
} else {
  echo ' NOOOOO ';
}

readfile('configuration2.php'); 
exit();

returns:

0no trae un joraca NOOOOO

ls:

-rwxrwxrwx 1 www-data www-data 2189 jun 14 18:16 configuration.php

apache2 作为 www-data:www-data

运行

www-data 10194 0.0 0.1 25940 3336 ? S 19:19 0:00 /usr/sbin/apache2 -k start

.htaccess 已删除

为什么文件不可读?我已经检查了 .htaccess、chmod 和 chown 问题。

我发现了这个:

[Sun Jun 12 22:12:12 2016] [warn] [client 1---1] mod_fcgid: stderr: PHP Warning: file_exists(): open_basedir restriction in effect. File(configuration.php) is not within the allowed path(s): (/var/ww---/web:/var/w---0/web20/tmp:/var/www/inm--ne.com/web

什么解释了错误是什么:D