Linux

http 2.4에서 Forbidden You don't have permission to access 해결방법

아이티제어 2022. 3. 17. 15:49

1) cat /etc/sysconfig/selinux 파일 수정 (enforcing => disabled 로)

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
#SELINUX=enforcing
SELINUX=disabled
# SELINUXTYPE= can take one of three values:
#     targeted - Targeted processes are protected,
#     minimum - Modification of targeted policy. Only selected processes are protected.
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted

2) httpd.conf 파일 수정 해당 홈페이지 폴더별  ( denied ==> granted  변경)

<Directory />
    AllowOverride none
    #Require all denied
    Require all granted
</Directory>

3) 페이지내 파일 퍼미션  apache가 접근권한 부여확인

 

끝.