在 Laravel 中收到 500 内部服务器错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13415762/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
getting 500 internal server error in laravel
提问by user1829474
I am new to laravel
. I am trying to configure laravel
accoring to tutorial https://github.com/jasonlewis/laravel-blog/wiki/Creating-a-simple-blog-in-Laravel-3
. I have created admin
folder but when I am trying to run http://localhost/blog/admin
, I am getting the following error :
我是新手laravel
。我正在尝试laravel
根据教程进行配置https://github.com/jasonlewis/laravel-blog/wiki/Creating-a-simple-blog-in-Laravel-3
。我已经创建了admin
文件夹,但是当我尝试运行http://localhost/blog/admin
时,出现以下错误:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at postmaster@localhost to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.4.2 (Win32) OpenSSL/1.0.1c PHP/5.4.4 Server at localhost Port 80
while on localhost/blog
. It is going perfect, what should I do ?
在localhost/blog
. 一切顺利,我该怎么办?
采纳答案by digma
Make sure your document root is pointed at localhost/blog/public/. If localhost/blog pulls up the Laravel splash screen OR whatever you'd set in the home view, then it's an htaccess issue. Most likely it's the document root not headed in the right direction.
确保您的文档根目录指向 localhost/blog/public/。如果 localhost/blog 拉出 Laravel 启动画面或您在主视图中设置的任何内容,那么这是一个 htaccess 问题。很可能是文档根目录没有朝着正确的方向发展。
回答by Jishad
Make sure your folders have 755
permission. I cleared this issue with permission. This is first thing do any others. You can get successful output.
确保您的文件夹具有755
权限。我已获得许可清除了这个问题。这是做任何其他人的第一件事。你可以得到成功的输出。
Thanks
谢谢