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가 접근권한 부여확인
끝.
'Linux' 카테고리의 다른 글
utf8을utf8mb4로변환 업그레이드 php프로그램 (0) | 2022.05.11 |
---|---|
Linux에서 windows파일 shell명령MySQL dump오류 해결 방법 (0) | 2022.03.18 |
http2.4에서 html 파일 소스가 보일때 php처리 적용 방법 (0) | 2022.03.17 |
MySQL4버전Latin1에서UTF8로 변환 (0) | 2022.03.17 |
KT-cloud CentOS7에 MySQL 4 소스컴파일( 실패 ) (1) | 2022.03.05 |