最佳答案
这是一个与 Laravel 安装相关的问题,我有一个面向公众的 Unix 服务器设置:
<VirtualHost *:80>
ServerAdmin webmaster@mydomain.org
DocumentRoot "/var/www/mydomain"
ServerName mydomain.org
ServerAlias www.mydomain.org
ErrorLog "/var/log/mydomain.org-error_log"
CustomLog "/var/log/mydomain.org-access_log" common
</VirtualHost>
I can serve documents fine out of /var/www/mydomain i.e. http://mydomain.org/test.php with test.php containing:
<?php echo 'test';
works fine.
在 bash 中,通过 Composer 安装 Laravel 并查看文件:
# ls /var/www/mydomain/my-laravel-project
.gitattributes CONTRIBUTING.md artisan composer.json phpunit.xml readme.md vendor
.gitignore app bootstrap composer.lock public server.php
所以当我浏览:
http://mydomain.org/my-laravel-project/public/
为什么我的申请报告:
Error in exception handler.
in the browser - on a blank white screen? I'm expecting to see the Laravel splash screen.
此外,日志文件也不会显示任何内容。