小编ale*_*i22的帖子

Laravel sail up 抛出权限被拒绝错误

我使用的是Ubuntu 22.04以及最新版本的Docker Desktop (4.11.1)Laravel Framework 9.26.1

我尝试按照https://laravel.com/docs/9.x#getting-started-on-linux中列出的步骤创建一个新的 Laravel 项目。

当我运行时,./vendor/bin/sail up终端没有显示任何错误。但是当我尝试访问 http://localhost/ Laravel 时显示此UnexpectedValueException

The stream or file "/var/www/html/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission denied The exception occurred while attempting to log: The stream or file "/var/www/html/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission denied The exception occurred while attempting to log: The stream or file "/var/www/html/storage/logs/laravel.log" …
Run Code Online (Sandbox Code Playgroud)

php laravel docker-compose laravel-sail

2
推荐指数
1
解决办法
8073
查看次数

标签 统计

docker-compose ×1

laravel ×1

laravel-sail ×1

php ×1