简体   繁体   English

codeigniter 根文件夹中没有 index.php 文件的项目?

[英]codeigniter project without index.php file in root folder?

I have got one codeigniter project which I tried in my machine and used it but after setting it up locally there are some issues like firstly it is not booted successfully and it lands on index.html page which is in root and showing我有一个 codeigniter 项目,我在我的机器上尝试并使用了它,但是在本地设置它之后出现了一些问题,例如首先它没有成功启动并且它位于 index.html 页面上,该页面位于根目录中并显示

<!DOCTYPE html>
<html>

<head>
    <title>403 Forbidden</title>
</head>

<body>
    <p>Directory access is forbidden.</p>
</body>

</html>

and this is my.htaccess file这是 my.htaccess 文件

<IfModule authz_core_module>
    Require all granted
</IfModule>
<IfModule !authz_core_module>
    Deny from all
</IfModule>

what i am seeeing that there is no index.php file in root folder what does it mean, the developers who made this project may have done it purposely but my concern is how to run this project if i am not able to reach at its index point我看到根文件夹中没有 index.php 文件这是什么意思,制作这个项目的开发人员可能是故意这样做的,但我担心的是如果我无法访问它的索引,如何运行这个项目观点

I also tried to access it using proper url but then it shows我还尝试使用正确的 url 访问它,但随后显示

No direct script access allowed

because it gets stuck at this line因为它卡在这条线上

<?php 
    defined('BASEPATH') OR exit('No direct script access allowed');
    if(isset($this->session->userdata['session_data']['id_client'])){
       $session_id = $this->session->userdata['session_data']['id_client'];
    }
?>

so I am not able to configure it properly所以我无法正确配置它

what i basically want to convey is how to run this project in my local machine and because of above issues i am not able to do so...我基本上想传达的是如何在我的本地机器上运行这个项目,由于上述问题我无法这样做......

so any help, or any ideas where i can look for...所以任何帮助,或任何我可以寻找的想法......

As per your.htaccess file.根据您的 .htaccess 文件。 I believe that problem is with your apache.我认为问题出在您的 apache 上。

Please check if authz_core_module available in your apache.请检查您的 apache 中是否存在 authz_core_module。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM