【发布时间】:2014-02-14 10:48:06
【问题描述】:
/var/log/apache2/error.log 中没有错误。 我使用 composer 安装了 laravel。
“msg”是我的应用程序名称。 当我访问 localhost/msg/ 时,我可以看到以下列表:
[ ] CONTRIBUTING.md 2014-01-18 18:14 145
[DIR] app/ 2014-01-18 18:14 -
[ ] artisan 2014-01-18 18:14 2.4K
[DIR] bootstrap/ 2014-01-18 18:14 -
[ ] composer.json 2014-01-18 18:14 697
[ ] composer.lock 2014-01-23 10:06 53K
[ ] phpunit.xml 2014-01-18 18:14 566
[DIR] public/ 2014-01-18 18:14 -
[ ] readme.md 2014-01-18 18:14 1.8K
[ ] server.php 2014-01-18 18:14 519
[DIR] vendor/ 2014-01-23 10:06 -
当我访问 localhost/msg/public/ 时,我得到一个空白页面(没有源代码)。 apache日志中仍然没有错误。
除了通过 composer 安装程序之外,我所做的只是 msg 文件夹中的一个 git init。
有什么想法吗?我真的很困惑在任何地方都没有错误。
【问题讨论】:
-
尝试运行“php artisan serve”来启动 Web 服务器,仅用于开发目的。你能访问
localhost:8000吗?它应该显示 laravel 启动页面。 -
@marcanuy 我得到了你刚到的标志! ...但这是否意味着我只能在已确定的服务器上运行 Laravel 才能运行应用程序?我希望能够在常规托管设置上运行仅 php 的应用程序...
-
是否可能因为路径的 /msg/public/ 部分而没有路由匹配,并且不知何故 laravel 不会抛出 404 ?
-
this question 的可能重复项。除了 Apache 错误日志 (
app/storage/logs) 之外,还要记得检查 Laravel 日志中的错误 -
酷。仍然值得确保
app/storage文件可由 PHP 写入!这就是我 99% 的时间 WSOD 的原因。