Apache 2.2.27 Install for Linux
1. Apache DownLoad
URL :
- 설치 후 디렉토리 구조
[weblogic@weblogic apache2.2]$ ll 합계 52 drwxr-xr-x 2 weblogic weblogic 4096 1월 15 17:04 bin drwxr-xr-x 2 weblogic weblogic 4096 1월 15 17:04 build drwxr-xr-x 2 weblogic weblogic 38 1월 15 17:04 cgi-bin drwxr-xr-x 4 weblogic weblogic 84 1월 15 17:04 conf drwxr-xr-x 3 weblogic weblogic 4096 1월 15 17:04 error drwxr-xr-x 2 weblogic weblogic 24 3월 14 2014 htdocs drwxr-xr-x 3 weblogic weblogic 8192 1월 15 17:04 icons drwxr-xr-x 2 weblogic weblogic 4096 1월 15 17:04 include drwxr-xr-x 3 weblogic weblogic 4096 1월 15 17:04 lib drwxr-xr-x 2 weblogic weblogic 6 1월 15 17:04 logs drwxr-xr-x 4 weblogic weblogic 30 1월 15 17:04 man drwxr-xr-x 14 weblogic weblogic 8192 3월 14 2014 manual drwxr-xr-x 2 weblogic weblogic 4096 1월 15 17:04 modules
4. httpd.conf 설정
위치 : $APACHE_HOME/conf/httpd.conf
주의 : 설정 전 백업해 두는 것을 추천합니다.
$>cp http.conf http.conf.bak
httpd.conf |
|
ServerRoot |
$APACHE_HOME |
Listen |
80 |
ServerName |
http://localhost:80 |
DocumentRoot |
$APACHE_HOME/htdocs |
5. Apache Start
위치 : $APACHE_HOME/bin
시작 : $>sudo ./apachectl start //root 권한으로 실행해야
종료 : $>sudo ./apachectl stop 실행이됨.