Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/254.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
PHP警告:require_once(/apps/backend/config/config.PHP):无法打开流:没有这样的文件或目录_Php_Symfony - Fatal编程技术网

PHP警告:require_once(/apps/backend/config/config.PHP):无法打开流:没有这样的文件或目录

PHP警告:require_once(/apps/backend/config/config.PHP):无法打开流:没有这样的文件或目录,php,symfony,Php,Symfony,我有下载网站和它出现的错误,请帮助我解决这个问题 我发现了类似的问题,但它实际上与我无关,可能是我找不到,请帮我解决这个问题 Warning: require_once(/apps/backend/config/config.php): failed to open stream: No such file or directory in /home/starpass/codmall.in/mm-admin100/index.php on line 12 Fatal error: requi

我有下载网站和它出现的错误,请帮助我解决这个问题

我发现了类似的问题,但它实际上与我无关,可能是我找不到,请帮我解决这个问题

Warning: require_once(/apps/backend/config/config.php): failed to open stream: No such file or directory in /home/starpass/codmall.in/mm-admin100/index.php on line 12


Fatal error: require_once(): Failed opening required '/apps/backend/config/config.php' (include_path='.:/opt/cpanel/ea-php56/root/usr/share/pear') in /home/starpass/codmall.in/mm-admin100/index.php on line 12
配置文件

    <?php

// include project configuration
include(SF_ROOT_DIR.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php');

// symfony bootstraping
require_once($sf_symfony_lib_dir.'/util/sfCore.class.php');
sfCore::bootstrap($sf_symfony_lib_dir, $sf_symfony_data_dir);

$sf_root_dir = sfConfig::get('sf_root_dir');
sfConfig::add(array(
  'sf_web_dir_name' => '../',
  'sf_web_dir'      => $sf_root_dir.DIRECTORY_SEPARATOR.'../',
  'sf_upload_dir_name' => 'siteuploads',
  'sf_upload_dir'   => $sf_root_dir.DIRECTORY_SEPARATOR.'../'.'siteuploads',
));

这看起来很奇怪。。。这应该是哪个symfony版本?确定路径的前缀斜杠正确吗?@Jakumi symfony version 1.0。20@MarkusZeller先生,我还没有把我的脚本文件夹放在根目录下的Public_html上,所以你能提到你说的是哪个斜杠吗?目录
codsmal
似乎在应该在的地方都不见了,使
define('SF\u ROOT\u DIR')
计算为
false
    <?php
if($_SERVER['HTTP_HOST'] !='codmall.in') {
    header('Location: https://codmall.in'.$_SERVER['REQUEST_URI'],TRUE,301);
    exit;
}

define('SF_ROOT_DIR',    realpath(dirname(__FILE__).'/../codsmal'));
define('SF_APP', 'backend');
define('SF_ENVIRONMENT','codmall');
define('SF_DEBUG', true);

require_once(SF_ROOT_DIR.DIRECTORY_SEPARATOR.'apps'.DIRECTORY_SEPARATOR.SF_APP.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php');

sfContext::getInstance()->getController()->dispatch();