본문 바로가기

프로그래밍/Server

httpd start error

[root@myserver] service httpd restart

Stopping httpd: [  OK  ]
Starting httpd: Warning: DocumentRoot [/home/XXXXX] does not exist
[  OK  ]

 

서버를 (리)스타트 시키는데 위와같이 가상호스팅으로 설정한 경로를 읽을수 없다고 나오면 아래 명령을 내리면 해결

 

아파치계정이 해당 경로로 접근을 하지 못해서 발생하는 문제

 

[root@myserver] chcon -R -t httpd_user_content_t /home/