CentOS apache httpd 실행시 DocumentRoot must be a directory 에러

less than 1 minute read

이거 말도안되는 에러…

selinux관련 버그라는 것 같다. chcon -R -h -t httpd_sys_content_t  ”디렉토리명”

보통 이렇게 쓰게 될듯 /home/webuser/www 경로인 경우 chcon -R -h -t httpd_sys_content_t  /home/webuser/www