繁体   English   中英

Codeigniter4安装:您需要将“文档根目录”设置为项目内的公共文件夹

[英]Codeigniter4 installation:you need to set your “document root” to the public folder inside your project

我正在尝试在计算机上安装Codeigniter 4

我已经从这个仓库https://github.com/bcit-ci/CodeIgniter4/tree/develop下载了codeigniter4。

从他们的文档https://bcit-ci.github.io/CodeIgniter4/installation/index.html

使用文本编辑器打开application / Config / App.php文件,然后设置基本URL。 如果您打算使用加密或会话,请设置您的加密密钥。

我已经完成了上述步骤,但仍然收到此错误消息,如果您看到此消息,则说明您未正确配置Web服务器。

You need to set your "document root" to the public folder inside your project. This could be your default setting, or that of a virtual host, depending on how you set up your local development environment.

目录结构 在此处输入图片说明

最后,我找到了答案,而不是从您的项目文件夹中运行站点,您应该从公用文件夹中运行它

eg:localhost/codeigniter4/public将给页面

暂无
暂无

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

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