2012-11-16 44 views
2

我是laravel的新手。我正在尝试按照教程https://github.com/jasonlewis/laravel-blog/wiki/Creating-a-simple-blog-in-Laravel-3配置laravel。我创建admin文件夹,但是当我试图运行http://localhost/blog/admin,我收到以下错误:在laravel中获得500个内部服务器错误

Internal Server Error 

The server encountered an internal error or misconfiguration and was unable to complete your request. 

Please contact the server administrator at [email protected] 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 

同时localhost/blog。它正在变得完美,我该怎么办?

+0

这很可能与您的htaccess有关。另外,作为那个(不完整)教程的作者,我建议你看看其他地方。那里的代码已经过时并且未完成。抱歉! –

回答

0

确保您的文档根目录位于localhost/blog/public /。如果本地主机/博客拉起Laravel启动画面或任何你在主视图中设置的内容,那么这是一个htaccess的问题。最有可能的是文档根目录未朝着正确的方向前进。

+0

谢谢大家,我通过使用apache/vhostconf创建虚拟域来解决我的问题 – user1829474

+0

请详细解释如何解决您的问题,因为我遇到了同样的问题 – Mohini

1

确保您的文件夹具有755权限。我经过许可清除了这个问题。这是做任何其他事情的第一件事。你可以获得成功的输出。

谢谢