홈디렉토리를 변경하고 apache 를 재구동했더니, 다음과 같은 퍼미션 에러가 발생함.
You don't have permission to access / on this server.
해결책:
/home/유저명 이 유저명 디렉토리 권한을 chmod 711 유저명으로 하면 해결된다.
** 전 이렇게 변경해서 해결했습니다. 만약 이방법도 안되면 두번째 방법까지 ..
둘째, SELinux 설정 문제
요 약:
SELinux is preventing the httpd from using potentially mislabeled files(/home/aaa/public_html/index.html)
해결책:
# restorecon -v '/home/aaa/public_html/index.html'
# restorecon -R -v '/home/aaa/public_html'
자료 출처 : http://youdw.egloos.com/171450
You don't have permission to access / on this server.
첫째, 아파치 퍼미션 문제
해결책:
/home/유저명 이 유저명 디렉토리 권한을 chmod 711 유저명으로 하면 해결된다.
[citylock@localhost home]$ ll
total 8
drwx------ 4 citylock citylock 4096 Sep 25 09:28 citylock
[citylock@localhost home]$ chmod 711 citylock/
[citylock@localhost home]$ ll
total 8
drwx--x--x 4 citylock citylock 4096 Sep 25 09:28 citylock
total 8
drwx------ 4 citylock citylock 4096 Sep 25 09:28 citylock
[citylock@localhost home]$ chmod 711 citylock/
[citylock@localhost home]$ ll
total 8
drwx--x--x 4 citylock citylock 4096 Sep 25 09:28 citylock
** 전 이렇게 변경해서 해결했습니다. 만약 이방법도 안되면 두번째 방법까지 ..
둘째, SELinux 설정 문제
요 약:
SELinux is preventing the httpd from using potentially mislabeled files(/home/aaa/public_html/index.html)
해결책:
# restorecon -v '/home/aaa/public_html/index.html'
# restorecon -R -v '/home/aaa/public_html'
자료 출처 : http://youdw.egloos.com/171450