在laravel中获得500内部服务器错误

时间:2012-11-16 11:33:18

标签: apache laravel laravel-3

我是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

localhost/blog上。这是完美的,我该怎么办?

2 个答案:

答案 0 :(得分:1)

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

由于

答案 1 :(得分:0)

确保您的文档根目录指向localhost / blog / public /。如果localhost / blog拉出Laravel启动画面或者你在家庭视图中设置的任何内容,那么这是一个htaccess问题。最有可能的是,文档根本没有朝着正确的方向发展。