[root@localhost ~]# vi httpd.conf
................
#DocumentRoot = "/var/www/html"
DocumentRoot = "/var/www/newDiretory"
DocumentRoot 설정 위치에서 변경 후 재시작 하는 경우 Directory 에러 날 때는 다음과 같이 내용을 추가적으로 수정
[root@localhost ~]# chcon -R -t httpd_user_content_t /var/www/newDiretory
#selinux 의 기능을 OFF
[root@localhost ~]# vi /etc/selinux/config
# 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 - SELinux is fully disabled.
#SELINUX=enforcing
SELINUX=disabled # 기능 작동을 중단합니다
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted