[ Laravel ] permission denied 문제

[ Laravel ] permission denied 문제

에러 문구

The stream or file "/home/laravel/sc_v2/storage/logs/laravel-2019-09-18.log" could not be opened: failed to open stream: Permission denied"

라라벨을 설치한 뒤에 웹서버의 permission denied 에러가 나올 경우 storage와 bootstrap/cache 폴더에 웹서버가 접근하지 못할 경우 생기는 에러이다

그룹권한을 웹서버에게 부여하면 해결된다.

sudo chown -R $USER:www-data storage

sudo chown -R $USER:www-data bootstrap/cache

chmod -R 775 storage

chmod -R 775 bootstrap/cache

from http://dev-joo.tistory.com/46 by ccl(A)

댓글

이 블로그의 인기 게시물

[PHP] 라라벨 루멘 DB문서 자동화

laravel-1 라우트 & 뷰

PHP 라라벨프레임워크 설치하기 in CentOS 7