반응형

Apache 구동 시 error
[root@scbyun-ns1 named]# service httpd restart
httpd 를 정지 중:                                          [  OK  ]
httpd (을)를 시작 중: Warning: DocumentRoot [/home/www/docs/www.scbyun.com] does not exist
                                                           [  OK  ]
messages 로그 error
[root@scbyun-ns1 named]# Oct  9 14:02:19 scbyun-ns1 setroubleshoot: SELinux is preventing the httpd from using potentially mislabeled files (./docs). For complete SELinux messages. run sealert -l f5fd0e77-7b77-4ffe-ac24-b6788f775d44

원인 : SELinux

해결 방법

# chcon -R -t httpd_user_content_t /home/www

chcon 명령어 /home/www 에 접근 가능하도록 설정한다.
반응형

+ Recent posts