Linux/Rocky Linux

Rocky Linux, Laravel : The stream or file "/var/www/html/storage/logs/laravel.log" 오류

제주도 조랑말 2023. 6. 14. 11:25
728x90

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

오류가 나서 확인해보니 권한 문제인 거 같아서

# chmod 777 -R storage 명령어 실행 (해당 폴더에서 실행)

 

근데 권한을 모두 부여하는 것은 안좋으므로 다른 방법 대안 필요

728x90