Servers

SELinux 보안 정책

seongsland 2010. 4. 6. 23:58
apache Start시 DocumentRoot를 directory 로 지정했음에도 에러가 날때..

Starting httpd: Syntax error on line 275 of /etc/httpd/conf/httpd.conf:
DocumentRoot must be a directory

문제는 SELinux 보안 정책때문에 해당 디렉토리가 있음에도 찾지 못한 것입니다.

chcon -R -t httpd_user_content_t /home/admin/www

출처 : http://www.linux.co.kr/home/superuserboard/view.html?id=1628&code=apache&start=0