/home 디렉토리를 DocumentRoot로 사용하고 싶은데 설정 후 아파치를 재가동 하니 "DocumentRoot must be a directory"라는 에러가 난다.
몇가지 테스트를 해보니 selinux 설정 때문이었다. 가장 쉬운 해결책은 /etc/selinux/config 파일을 열어서 SELINUX=disabled 로 변경하고 재부팅해서 selinux를 비활성화 하는 것이다.
보안때문에 selinux를 계속 사용해야 한다면 selinux 보안문맥 설정 명령어인 chcon을 사용해서 아래와 같은 명령어를 실행 해주면 된다.
chcon -R -h -t httpd_sys_content_t /home
'IT > 리눅스(linux)' 카테고리의 다른 글
mysql서버가 연결이 안되는 경우 (0) | 2014.11.04 |
---|---|
우분투 콘솔에서 euc-kr 사용하기 (1) | 2013.10.25 |
아파치에서 "DocumentRoot must be a directory" 에러 날 때 (0) | 2013.07.08 |
우분투에서 /etc/cron.daily/apt: Cache has broken packages, exiting 메시지 해결 (0) | 2013.04.02 |
우분투 phpmyadmin에서 'Connection for controluser as defined in your configuration failed' 나는 경우 해결방법 (2) | 2012.03.05 |
우분투 11에서 sun-java6-jdk 설치 (2) | 2012.03.05 |