It's under your control.

VirtualHost 설정시 에러 Warning: DocumentRoot [/home/***/public_html] does not exist 본문

Works/Linux

VirtualHost 설정시 에러 Warning: DocumentRoot [/home/***/public_html] does not exist

H4ru 2013. 5. 11. 17:38

CentOS 설치 후 Apache 시작시 에러


# service httpd restart

httpd 를 정지 중: [ OK ]

httpd (을)를 시작 중: Warning: DocumentRoot [/home/***/public_html] does not exist

[ OK ]


원인 : SELinux

 



- 해결 방법: 해당 디렉토리 접근을 허용 하거나 SELinux를 disable 시킨다.


아파치 사용자 /home 디렉토리 접근 허용.

# chcon -R -t httpd_user_content_t /home/아이디

또는

# chcon -R -t httpd_user_content_t /home

 

 

SELinux disable

# vi /etc/selinux/config


#SELINUX=enforcing <= 주석 처리

SELINUX=disabled <= 새로 작성

(저장 후 재시작)


'Works > Linux' 카테고리의 다른 글

[Ubuntu] SSH 접속이 느릴 때  (0) 2013.05.18
tar 압축 하기 or 압축 풀기  (0) 2013.05.03
리눅스 시작프로그램 설정  (0) 2013.05.03
dpkg 사용법  (0) 2013.05.03
리눅스 vim 자동정렬 하기  (0) 2013.04.24