OneIndex重建缓存页面报错

OneIndex重建缓存页面可能出现以下报错信息:

Warning: file_exists(): open_basedir restriction in effect. File(/bin/php) is not within the allowed path(s): (/****/:/tmp/:/proc/) in /****/view/admin/cache.php on line 12

修改方式为,打开view/admin/cache.php页面,注释掉以下代码:

/****注释开始(此文件的第4行)*******
  $paths = explode(PATH_SEPARATOR, getenv('PATH'));
  foreach ($paths as $path) {
    if (strstr($path, 'php.exe') && isset($_SERVER["WINDIR"]) && file_exists($path) && is_file($path)) {
        return $path;
    }
    else {
        $php_executable = $path . DIRECTORY_SEPARATOR . "php" . (isset($_SERVER["WINDIR"]) ? ".exe" : "");
        if (file_exists($php_executable) && is_file($php_executable)) {
           return $php_executable;
        }
    }
  }
  *********注释结束(此文件的第15行)******/

你可能感兴趣的:(OneIndex重建缓存页面报错)