The stream or file "/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied
라라벨 설치 이후 위 와 같은 에러는 디렉토리의 권한 문제입니다.
#nginx 이고 CentOS/RHEL 일 경우
sudo chown -R nginx:nginx storage bootstrap/cache
#apache 일 경우, nginx 이고 Ubuntu/Debian 일 경우
sudo chown -R www-data:www-data storage bootstrap/cache
디렉토리에 권한을 부여하여 해결할 수 있습니다.
[Laravel] 라라벨 Auth 로그인 유지가 안되는 문제 해결 방법 (0) | 2024.10.31 |
---|---|
라라벨 미들웨어 (Laravel Middleware) 사용법 with Laravel 11.x (1) | 2024.05.16 |
라라벨 라이프사이클과 MVC 패턴 (Life Cycle, MVC Pattern) (0) | 2024.04.11 |
라라벨 초기 세팅시 Key 생성 (0) | 2024.04.08 |