It's a Laravel-install related question. I have a public-facing Unix server setup:

<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.

In bash, with Laravel installed through Composer and looking at the files:

# 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.

此外,日志(log)文件也没有透露任何信息.

推荐答案

The safer option would be to change the group of the storage directories to your web servers group (usually apache or www-data, but this can vary between the different operating systems) and keep the permissions as of the directory as 775.

chgrp -R www-data app/storage

Or with chown.

chown -R :www-data app/storage

Then make sure directory permissions are 775.

chmod -R 775 app/storage

From the Laravel web site:

Laravel可能需要配置一组权限:文件夹

Laravel相关问答推荐

Hostinger Laravel网站未显示错误

Laravel使用PostgreSQL显示";`try 读取null`上的属性,而不是SQL错误消息

拉威尔望远镜没有显示请求细节

Livewire 基于下拉 Select 自动填充输入框

在 Laravel 包中的路由上使用显式或隐式模型绑定

mysql 加入 ON 和 AND 到 laravel eloquent

Laravel 中间件返回(try 获取非对象的属性 headers)错误

Laravel Blade 模板 @foreach 订单

Laravel 表 * 没有名为 * 的列

Laravel 5 - 没有重叠的任务计划不起作用

Laravel 说 Auth guard [] 没有定义

Laravel Blade - 如果满足条件,则添加一个类

如何重定向到laravel上的公共文件夹

Laravel 中的单会话登录

Laravel 5 Carbon 全局语言环境

Laravel:在另一个控制器中加载方法而不更改 url

Laravel 接口

控制器中的artisan调用输出?

Lumen/Laravel 6:调用未定义的函数 array_except()

使用哪个 Auth::check() 或 Auth::user() - Laravel 5.1?