Sep 062010
 

리눅스 서버의 사용자 계정에서 홈페이지 서비스 가능하도록 설정하는 방법.
Fedora 9 기준.

root로 로그인하여
1. httpd.conf 설정
UserDir disable 을 코멘트 처리
UserDir public_html 을 언커멘트
2. httpd 서비스 재시작
service httpd restart
3. 사용자 계정 생성
useradd id
passwd id – 초기 패스워드 설정
4. 계정 접근권한 설정
chmod a+x ~id
5. SeLinux에서 엑세스 허용
restorecon -R -v /home/id

사용자 id로 로그인하여
1. 홈디렉토리에 public_html 디렉토리 생성
2. public_html 디렉토리에 index.html 작성
3. localhost/~id 로 접속하여 서비스 동작 확인

Comments

Powered by Facebook Comments

 Posted by at 3:12 PM

Sorry, the comment form is closed at this time.