gpt4 book ai didi

CodeIgniter local development server can open localhost but when i open url its not working(CodeIgniter本地开发服务器可以打开本地主机,但当我打开url时,它不工作)

转载 作者:bug小助手 更新时间:2023-10-24 17:10:52 28 4
gpt4 key购买 nike



i have install codeigniter 4 from composer to my laptop. and i want to run local development server using php spark serve. after i run it, its looks like this :
local development server

我已经把Codeigniter 4从Composer安装到我的笔记本上了。我想运行本地开发服务器使用php星火服务。在我运行它之后,它看起来是这样的:本地开发服务器


i'm so confused why so many port open. but i try to open default port on localhost:8080, but i get it :
error

我真搞不懂为什么有这么多港口开放。但是我尝试打开本地主机上的默认端口:8080,但我得到了它:错误


i have tried all of port from 8080 to 8090 like on first picture, but all of the port same like default port, cant be reached.

我已经尝试了从8080到8090的所有端口,就像第一张图片一样,但所有的端口都像默认端口一样,无法到达。


can someone help me in this case? because i have change in my .env file to default port on 8080 but it still cant reached.

在这种情况下,有人能帮我一下吗?因为我在我的.env文件中更改为8080上的默认端口,但仍然无法访问。


i have try like change my configuration on my .env but still cant open the port

我已经尝试更改我的.env上的配置,但仍然无法打开端口


更多回答

Please share your .env file's APP_URL configuration. It must match the port where your application is being served. Secondly, what does this command return php -v? Lastly, try using PHP's built-in server instead and update your APP_URL=localhost:4532 accordingly. php -S localhost:4532 -t public

请共享您的.env文件的APP_URL配置。它必须与服务您的应用程序的端口匹配。其次,此命令返回什么php-v?最后,尝试使用PHP的内置服务器,并相应地更新APP_URL=LOCALHOST:4532。Php-S本地主机:4532-t公有

i have make my configuration on my .env to default localhost but i have same like before. so i use your last solution to use php bulit-in server. and run the code. and its work. i so thank to you because i need this for my project on my intership. thank a lot.

我已经在我的.env上将我的配置设置为默认的本地主机,但我的配置与以前一样。因此,我使用您的上一个解决方案来使用php内置服务器。然后运行代码。以及它的工作。我非常感谢你,因为我的实习项目需要这个。非常感谢。

Perfect! I'm glad l could be of help. 😊

太棒了!我很高兴L能帮上忙。😊

优秀答案推荐
更多回答

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com