IT

[Laravel] Storage 권한문제

Hragon 2021. 1. 20. 20:06

[문제]

The stream or file "/프로젝트 폴더/storage/logs/laravel-2019-09-18.log" could not be opened: failed to open stream: Permission denied"

 

[해결]

프로젝트 폴더에서 다음의 명령어를 입력해준다

 

mkdir -p bootstrap/cache
chown -R www-data:www-data bootstrap/cache
mkdir -p storage/logs
mkdir -p storage/framework/cache
mkdir -p storage/framework/sessions
mkdir -p storage/framework/views
chown -R www-data:www-data storage
반응형