cakephp没有这样的文件或目录

cakephp没有这样的文件或目录,php,cakephp,Php,Cakephp,我不了解PHP,我尝试安装一个PHP web,它显示了以下错误: 注意:在第79行/usr/local/crowdfunding/app/webroot/test.php中使用未定义的常量CAKE\u CORE\u INCLUDE\u PATH-假设在第91行/usr/local/crowdfunding/app/webroot/test.php中使用“CAKE\u CORE\u INCLUDE\u PATH”警告:INCLUDE(CAKE/bootstrap.php):未能打开流:在第91行/

我不了解PHP,我尝试安装一个PHP web,它显示了以下错误:

注意:在第79行/usr/local/crowdfunding/app/webroot/test.php中使用未定义的常量CAKE\u CORE\u INCLUDE\u PATH-假设在第91行/usr/local/crowdfunding/app/webroot/test.php中使用“CAKE\u CORE\u INCLUDE\u PATH”警告:INCLUDE(CAKE/bootstrap.php):未能打开流:在第91行/usr/local/crowdfunding/app/webroot/test.php中没有这样的文件或目录:在第91行/usr/local/crowdfunding/app/webroot/test.php中打开“Cake/bootstrap.php”以包含(include_path='/usr/local/crowdfunding/lib:Cake_CORE_include_path:/usr/local/crowdfunding/app/:.:/usr/share/pear:/usr/share/php)失败致命错误:找不到CakePHP CORE。在APP/webroot/index.php中检查CAKE\u CORE\u INCLUDE\u PATH的值。它应该指向包含/cake核心目录和/vendors根目录的目录。在第100行的/usr/local/crowdfunding/app/webroot/test.php中

On test.php:(cakephp测试):

set_time_limit(0);
ini_set('display_errors', 1);
/**
 * Use the DS to separate the directories in other defines
 */
    if (!defined('DS')) {
        define('DS', DIRECTORY_SEPARATOR);
    }
/**
 * These defines should only be edited if you have cake installed in
 * a directory layout other than the way it is distributed.
 * When using custom settings be sure to use the DS and do not add a trailing DS.
 */

/**
 * The full path to the directory which holds "app", WITHOUT a trailing DS.
 *
 */
    if (!defined('ROOT')) {
        define('ROOT', dirname(dirname(dirname(__FILE__))));
    }
/**
 * The actual directory name for the "app".
 *
 */
    if (!defined('APP_DIR')) {
        define('APP_DIR', basename(dirname(dirname(__FILE__))));
    }
        if (!defined('WEBROOT_DIR')) {
        define('WEBROOT_DIR', basename(dirname(__FILE__)));
    }
    if (!defined('WWW_ROOT')) {
        define('WWW_ROOT', dirname(__FILE__) . DS);
    }
    if (!defined('CORE_PATH')) {
        if (function_exists('ini_set') && ini_set('include_path', CAKE_CORE_INCLUDE_PATH . PATH_SEPARATOR . ROOT . DS . APP_DIR . DS . PATH_SEPARATOR . ini_get('include_path'))) {
            define('APP_PATH', null);
            define('CORE_PATH', null);
        } else {
            define('APP_PATH', ROOT . DS . APP_DIR . DS);
            define('CORE_PATH', CAKE_CORE_INCLUDE_PATH . DS);
        }
    }
    if (!defined('CAKE_CORE_INCLUDE_PATH')) {
        if (function_exists('ini_set')) {
            ini_set('include_path', ROOT . DS . 'lib' . PATH_SEPARATOR . ini_get('include_path'));
        }
        if (!include('Cake' . DS . 'bootstrap.php')) {
            $failed = true;
        }
    } else {
        if (!include(CAKE_CORE_INCLUDE_PATH . DS . 'Cake' . DS . 'bootstrap.php')) {
            $failed = true;
        }
    }
    if (!empty($failed)) {
        trigger_error("CakePHP core could not be found.  Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php.  It should point to the directory containing your " . DS . "cake core directory and your " . DS . "vendors root directory.", E_USER_ERROR);
    }

    if (Configure::read('debug') < 1) {
        die(__d('cake_dev', 'Debug setting does not allow access to this url.'));
    }

    require_once CAKE . 'TestSuite' . DS . 'CakeTestSuiteDispatcher.php';

    CakeTestSuiteDispatcher::run();
Config/config.php 
       bootstrap.php
        ...
webroot/test.php 
似乎它无法在那里搜索配置文件夹。我该怎么做才能让它工作


谢谢。

检查index.php文件,看看CAKE\u CORE\u INCLUDE\u路径指向哪里。。。您可能需要将该行复制到test.php文件中

ie:
define('CAKE\u CORE\u INCLUDE\u PATH',ROOT.DS.'lib')