
1. --with-suexec-userdir 옵션을 사용하여 사용자 디렉토리 설정을 하는 방법은 다음과 같습니다.
- Apache 서버를 컴파일 할 때 --with-suexec-userdir 옵션을 사용합니다. (예: ./configure --with-suexec-userdir)
- 사용자 디렉토리 설정을 위한 디렉토리를 생성합니다. (예: /home/user/public_html)
- 사용자 디렉토리 설정을 위한 권한을 설정합니다. (예: chown -R user:user /home/user/public_html)
- Apache 서버의 httpd.conf 파일을 편집하여 사용자 디렉토리 설정을 추가합니다.
2. 사용자 디렉토리 설정 후, Apache 서버를 재시작할 때는 다음과 같은 절차를 거칩니다.
- Apache 서버를 중지합니다. (예: service httpd stop)
- Apache 서버의 설정 파일을 편집합니다. (예: vi /etc/httpd/conf/httpd.conf)
- 사용자 디렉토리 설정을 추가한 후 Apache 서버를 재시작합니다. (예: service httpd start)
3. 사용자 디렉토리 설정이 성공적으로 완료되었는지 확인하는 방법은 다음과 같습니다.
- Apache 서버의 로그 파일을 확인합니다. (예: tail -f /var/log/httpd/error_log)
- 사용자 디렉토리 설정을 확인하는 명령어를 사용합니다. (예: suexec -V)
- 사용자 디렉토리 설정을 테스트합니다. (예: http://localhost/~username/index.html)
2025-03-21 15:19