试图运行Laravel项目时的错误
我刚刚开始Laravel,我想从GitHub下载并运行一个项目,但是在运行了PHP Composer Install和PHP Artisan Serve命令之后,然后转到 http://127.0.0.1:8000 ,它说“ 500服务器错误”。你们是否知道我该怎么办才能运行它?
I am just getting started with Laravel and I wanted to download and run a project from github, but after running the php composer install and php artisan serve commands and going to http://127.0.0.1:8000, it says "500 Server Error". Do you guys have any idea what I should do in order to be able to run it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您制作了一个env文件吗?您需要确保将框架连接到服务器。您应该有一个env.example文件要复制,应该看起来像这样的东西
将其保存在您的根目录中为.env
Did you make an env file? You need to make sure your framework is connected to the server. You should have an env.example file to copy from and it should look something like this
Save it in your root directory as .env
First Form .ENV文件make app_debug = true。(然后您会发现错误而不是500)
如果没有供应商文件夹,而不是CMD写作作曲家更新。
然后尝试PHP Artisan服务
First Form .env File Make APP_DEBUG=true.(then you will find error instead of 500)
If There is no vendor Folder than in Cmd Write Composer Update.
Then try php artisan serve