[CentOS7] 라라벨(Laravel) SELinux 퍼미션(Permission denied) 문제 해결하기


[CentOS7] 라라벨(Laravel) SELinux 퍼미션(Permission denied) 문제 해결하기

퍼미션 문제 발생 Permission denied The stream or file "/home/centos/BeverageManager/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied 위와 같은 오류로 권한, 퍼미션 등을 조정해도 안되는 경우가 있습니다. 그런 경우 SELinux를 체크해봐야 합니다. CentOS7 부터는 기본값이 False 로 바뀌어서 /var/www/html 같은 폴더에 컨텐츠가 있을 경우 소유자가 웹 서버(apache) 이고 파일 퍼미션에 write 가 설정되어 있고 httpd_sys_content_t context 가 설정되어도 쓰지를 못하게 되어있습니다. SELinux 설정하기 # SELinux를 사용하여 이 명령을 사용하여 파일 쓰기를 허용합니다. setenforce 0 # 라라벨 프로젝트 폴더로 이동 후 "storage" 폴더를 "httpd_sy...


#denied #퍼미션변경 #퍼미션문제 #퍼미션 #라라벨 #selinux #permissiondenied #permission #laravel #퍼미션해제

원문링크 : [CentOS7] 라라벨(Laravel) SELinux 퍼미션(Permission denied) 문제 해결하기