[CentOS7] Apache 퍼미션 (You don't have permission to access) 해결하기(수정)


[CentOS7] Apache 퍼미션 (You don't have permission to access) 해결하기(수정)

퍼미션 문제로 접속 불가시 You don't have permission to access 1. 권한 수정하기 # "-R" 붙이면 하위 디렉토리까지 전부 변경 # "777" 다른 사용자도 변경을 허용 # 권한 수정의 경우 테스트로 "777"를 해본 후 원인이 맞다면 적당한 권한으로 수정하길 권장 chmod -R 777 /home/username OR chmod -R 777 /var/www/html 2. 소유자 변경하기 # "-R" 붙이면 하위 디렉토리까지 전부 변경 chown -R root:root /home/username OR chown -R root:root /var/www/html 3. httpd.conf vi /etc/httpd/conf/httpd.conf # 아래 부분을 찾은 후 <Directory /> AllowOverride none Require all denied </Directory> ----- # 아래와 같이 변경 <Directory /> AllowOverrid...


#403 #아파치 #소유자 #권한 #SELinux #security #permission #httpd #apache #퍼미션

원문링크 : [CentOS7] Apache 퍼미션 (You don't have permission to access) 해결하기(수정)