php警告:警告:是否可读():打开\u basedir限制生效
我在安装Omeka库CMS时收到此PHP警告。我该如何解决这个问题 警告:是否可读():打开\u basedir限制生效。 文件(/opt/alt/php56/usr/share/pear//home/stmikti4/public_html/elib/install/。/application/libraries/Omeka/application/Resource/Layout.php) 不在允许的路径内: (/home/stmikti4:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp) 在里面 /home/stmikti4/public_html/elib/application/libraries/Zend/Loader.php 在线186php警告:警告:是否可读():打开\u basedir限制生效,php,Php,我在安装Omeka库CMS时收到此PHP警告。我该如何解决这个问题 警告:是否可读():打开\u basedir限制生效。 文件(/opt/alt/php56/usr/share/pear//home/stmikti4/public_html/elib/install/。/application/libraries/Omeka/application/Resource/Layout.php) 不在允许的路径内: (/home/stmikti4:/usr/lib/php:/usr/php4/lib
要了解导致此问题的原因,您必须查看第186行的Zend_Loader类:
public static function isReadable($filename)
{
if (is_readable($filename)) { <-- this returns false, should return true.
// Return early if the filename is readable without needing the
// include_path
return true;
}
.....
foreach (self::explodeIncludePath() as $path) {
.....
$file = $path . '/' . $filename;
if (is_readable($file)) { <-- this here causes your error.
return true;
}
}
return false;
}
公共静态函数可读取($filename)
{
如果(is_readable($filename)){这不是一个错误。这是一个“警告”,所以我可以忽略它??或者我应该修复它?我认为这是您在“/home/stmikti4/public_html/elib/application”中的权限,请检查是否所有用户都可以访问该文件夹和所有子文件夹。您的操作系统是什么?