본문 바로가기

기타/디지털

Apache 소스 설치 (2.0.52 version)

1. download : www.apache.org
2. tar zxpf /usr/local/src/httpd-2.0.52; cd httpd-2.0.52
3. ./configure --prefix=/usr/local/apache-2.0.52 --enable-rule=SHARED_CORE --enable-so
4. make
5. make install
6. cd /usr/local
7. ln -s apache-2.0.52 apache
8. vi ./httpd/conf/httpd.conf

ServerAdmin   you@example.com : 관리자 메일주소
ServerName   *:80 -> yourdomain : 주석 활성화
CustomLog   logs/access_log common : 주석 활성화
CustomLog   logs/access_log combined : 주석 활성화
ServerTokens   Full -> Prod
AddDefaultCharset  ISO-8859-1 : 주석 활성화

9. cp -p ./apache/bin/apachectl /etc/rc.d/init.d/httpd
10. ln -s /etc/rc.d/init.d/httpd /etc/rc.d/rc3.d/S80httpd
11. ln -s /etc/rc.d/init.d/httpd /etc/rc.d/rc3.d/S80httpd
12. rm -rf ./httpd/htdocs
13. ln -s /php ./httpd/htdocs
14. /etc/rc.d/init.d/httpd start
15. connection test through web-browser