【问题标题】:getting 500 internal server error in laravel在 laravel 中出现 500 内部服务器错误
【发布时间】:2012-11-05 03:06:34
【问题描述】:

我是laravel 的新手。我正在尝试根据教程https://github.com/jasonlewis/laravel-blog/wiki/Creating-a-simple-blog-in-Laravel-3 配置laravel。我创建了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 上。一切顺利,我该怎么办?

【问题讨论】:

  • 这很可能与您的 htaccess 有关。另外,作为那个(不完整的)教程的作者,我建议你去别处看看。那里的代码已过时且未完成。对不起!

标签: apache laravel laravel-3


【解决方案1】:

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

谢谢

【讨论】:

    【解决方案2】:

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

    【讨论】:

    • 感谢大家,我已经通过使用 apache/vhostconf 创建虚拟域解决了我的问题
    • 请详细说明如何解决您的问题,因为我遇到了同样的问题
    猜你喜欢
    • 2014-10-25
    • 2015-08-12
    • 2020-10-07
    • 1970-01-01
    • 2015-10-11
    • 1970-01-01
    • 1970-01-01
    • 2020-02-06
    • 2017-04-12
    相关资源
    最近更新 更多