Cakephp не работает. Как я могу решить эту проблему

#php #cakephp #apache2

Вопрос:

Недавно я установил программное обеспечение MISP. После установки программное обеспечение MISP работает правильно, но веб-сайт не открывается, у меня есть скрипт cakephp:

 * This auto-detects CakePHP as a composer installed library.  * You may remove this if you are not planning to use composer (not recommended, though).  */ $vendorPath = ROOT . DS . APP_DIR . DS . 'Vendor' . DS . 'cakephp' . DS . 'cakephp' . DS . 'lib'; $dispatcher = 'Cake' . DS . 'Console' . DS . 'ShellDispatcher.php'; if (!defined('CAKE_CORE_INCLUDE_PATH') amp;amp; file_exists($vendorPath . DS . $dispatcher)) {  define('CAKE_CORE_INCLUDE_PATH', $vendorPath); } else {  /**  * The absolute path to the "cake" directory, WITHOUT a trailing DS.  *  * Un-comment this line to specify a fixed path to CakePHP.  * This should point at the directory containing `Cake`.  *  * For ease of development CakePHP uses PHP's include_path. If you  * cannot modify your include_path set this value.  *  * Leaving this constant undefined will result in it being defined in Cake/bootstrap.php  */  define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . APP_DIR . DS . 'Lib' . DS . 'cakephp' . DS . 'lib'); }  /**  * Editing below this line should NOT be necessary.  * Change at your own risk.  */ if (!defined('WEBROOT_DIR')) {  define('WEBROOT_DIR', basename(dirname(__FILE__))); } if (!defined('WWW_ROOT')) {  define('WWW_ROOT', dirname(__FILE__) . 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); }  App::uses('Dispatcher', 'Routing');  $Dispatcher = new Dispatcher(); $Dispatcher-gt;dispatch(new CakeRequest(), new CakeResponse(array('charset' =gt; Configure::read('App.encoding'))));  

Почему это является причиной и как я могу решить эту проблему? Кто-нибудь может мне помочь/ PS: версия cakephp-2.10.24, а версия php-7.2.24.