【问题标题】:Your application folder path does not appear to be set correctly. Please open the following file and correct this: index.php您的应用程序文件夹路径似乎设置不正确。请打开以下文件并更正:index.php
【发布时间】:2017-09-26 03:09:43
【问题描述】:

系统曾经正常工作,但随后出现此错误我不知道解决方案,因为我还是这个平台的新手;但我已经检查了由于缺少文件目录而提示它的类似问题。有什么建议吗?

附件是文件结构; 这些文件在一个系统文件下Files structure

【问题讨论】:

    标签: php codeigniter


    【解决方案1】:

    发生这种情况的原因如下。

    • 您的 system 文件夹可能丢失

    • 检查您的文件夹权限

    • 打开您的 index.php 文件并找到 $system_path 和
      $application_folder。

    $system_path = 'system'; $application_folder = 'application';

    【讨论】:

      【解决方案2】:

      正确指向您的系统文件夹,如果是不同的目录,请在 index.php 中调整

      例如

      $system_path = 'system';
      
      $system_path = '../system';
      
      $system_path = '../../system';
      

      【讨论】:

      • 很好地指出,有时网络服务器用户可能没有足够的权限来读取系统目录++
      【解决方案3】:

      发生这种情况的原因如下。

      your system folder might be missing
      
      1. 打开配置
      2. 和config.php
      3. 搜索 $config['index_page'] = '';
      4. 最后搜索输入 index.php 例如 $config['index_page'] = 'index.php';

      【讨论】:

        【解决方案4】:

        如果您使用的是 CI4,请在项目主目录中创建 index.php:

        <?php
        
        // Path to the front controller (this file)
        define('FCPATH', __DIR__ . DIRECTORY_SEPARATOR);
        
        // Ensure the current directory is pointing to the front controller's directory
        chdir(__DIR__);
        
        // Load our paths config file
        // This is the line that might need to be changed, depending on your folder structure.
        $pathsConfig = FCPATH . 'app/Config/Paths.php';
        // ^^^ Change this if you move your application folder
        require realpath($pathsConfig) ?: $pathsConfig;
        
        $paths = new Config\Paths();
        
        // Location of the framework bootstrap file.
        $bootstrap = rtrim($paths->systemDirectory, '\\/ ') . DIRECTORY_SEPARATOR . 'bootstrap.php';
        $app       = require realpath($bootstrap) ?: $bootstrap;
        
          
        $app->run();
        

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 2016-07-14
          • 2015-07-27
          • 2012-06-19
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2012-05-24
          相关资源
          最近更新 更多