| At line 1 added 206 lines |
| [{TableOfContents}] |
|
|
| !!!apache 2.2.x 컴파일 설치 방법 |
| !open ssl |
| {{{ |
| #yum install |
| yum install openssl |
|
| #컴파일 & 설치 |
| wget http://www.openssl.org/source/openssl-0.9.8f.tar.gz |
| tar -xvzf openssl-0.9.8f.tar.gz |
| cd openssl-0.9.8f |
| ./config |
| make && make install |
| }}} |
|
| !아파치 다운로드 & 컴파일 & 설치 |
| *기존 설치된 httpd 실행 파일 경로 강제로 수정 |
| {{{ |
| #설치된 아파치가 있을시 제거 |
| rpm -qa | grep httpd |
| yum remove httpd |
| }}} |
| *설치 |
| {{{ |
| 아파치 2.2.x |
| wget http://archive.apache.org/dist/httpd/httpd-2.2.13.tar.gz |
| tar -xvzf httpd-2.2.13.tar.gz |
| cd httpd-2.2.13 |
| ./configure --prefix=/usr/local/apache2 --enable-so \ |
| --enable-ssl --with-ssl=/usr/local/ssl \ |
| --enable-rewrite \ |
| --enable-suexec --with-suexec-caller=bin \ |
| --enable-deflate --enable-headers \ |
| --enable-dav \ |
| --with-included-apr\ |
| --with-mpm=worker |
|
| #--enable-lib64 --libdir=/usr/lib64 64비트 시스템일경우 추가 |
| #--enable-ssl ssl https 인증서 사용시 필요 |
| #--enable-rewrite 주소 재작성 모듈 |
| #--enable-suexec cgi 실행 권한 관련 |
| #--enable-deflate --enable-headers 압축관련(이미지등) |
| #--enable-dav subversion에서 사용됨 |
| #--with-included-apr 아파치 소스에 포함된 apr을 그대로 사용하도록 지정 |
| #--with-mpm=worker 아파치의 프로세스 동작 설정(기본 옵션은 prefork) |
|
| make && make install |
| }}} |
|
| !아파치 path 설정 |
| {{{ |
| vi /etc/profile |
| >>>>>>>>>>>>>>>>>>>>>> |
| PATH=$PATH:/usr/local/apache2/bin |
| export PATH |
| <<<<<<<<<<<<<<<<<<<<<< |
| }}} |
|
| !아파치 서비스 등록 |
| *아파치의 apachectl을 service에 등록 |
| {{{ |
| 기존 파일이 있을경우 덥어쓰기 한다. |
| 기본설치된 아파치의 설정 파일 임. |
|
| cp /usr/local/apache2/bin/apachectl /etc/init.d/httpd |
|
| vi /etc/init.d/httpd |
| >>>>>>>>>>>>>>>>>>>>>>>>> |
| # chkconfig: - 92 92 |
| # description: Apache Web Server Version 2.2.x |
| <<<<<<<<<<<<<<<<<<<<<<<<< |
| }}} |
| *service 등록 |
| {{{ |
| chkconfig --add httpd |
| chkconfig --level 35 httpd on |
| chkconfig --list httpd |
| }}} |
|
| *service 수행 |
| {{{ |
| service httpd start |
| }}} |
|
| !기본 환결 설정 |
| {{{ |
| vi /usr/local/apache2/conf/httpd.conf |
| >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> |
|
| #서버명 |
| ServerName localhost:80 |
|
| #You don't have permission to access 에러 해결 |
| <Directory /> |
| Options FollowSymLinks |
| AllowOverride None |
| Order deny,allow |
| # by user |
| # Deny from all |
| Allow from all |
| </Directory> |
|
| #index page 수정 |
| <IfModule dir_module> |
| DirectoryIndex index.html index.php index.jsp |
| </IfModule> |
|
|
| <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< |
| }}} |
|
|
|
| !!!apache 2.0.x 컴파일 설치 방법 |
|
| !open ssl 다운로드 & 컴파일 & 설치 (0.9.8은 apache와 ssl 연동시 안된다고 함) |
| {{{ |
| wget http://www.openssl.org/source/openssl-0.9.7d.tar.gz |
| tar zxf openssl-0.9.7d.tar.gz |
| cd openssl-0.9.7d |
| ./config --prefix=/usr/ --openssldir=/usr/local/ssl |
| make && make install |
| }}} |
|
| !아파치 다운로드 & 컴파일 & 설치 |
| *기존 설치된 httpd 제거 |
| {{{ |
| #설치된 아파치가 있을시 제거 |
| rpm -qa | grep httpd |
| yum remove httpd |
| }}} |
| *설치 |
| {{{ |
| wget http://archive.apache.org/dist/httpd/httpd-2.0.63.tar.gz |
| tar -xvzf httpd-2.0.63.tar.gz |
| cd httpd-2.0.63 |
| ./configure --prefix=/usr/local/apache2 --enable-so \ |
| --enable-ssl --with-ssl=/usr/local/ssl \ |
| --enable-rewrite \ |
| --enable-suexec --with-suexec-caller=bin \ |
| --enable-deflate --enable-headers \ |
| --enable-dav \ |
| --with-mpm=worker |
|
| #--enable-lib64 --libdir=/usr/lib64 64비트 시스템일경우 추가 |
| #--enable-ssl ssl https 인증서 사용시 필요 |
| #--enable-rewrite 주소 재작성 모듈 |
| #--enable-suexec cgi 실행 권한 관련 |
| #--enable-deflate --enable-headers 압축관련(이미지등) |
| #--enable-dav subversion에서 사용됨 |
| #--with-mpm=worker 아파치의 프로세스 동작 설정(기본 옵션은 prefork) |
|
| make && make install |
| }}} |
| *64비트 시스템에서 /usr/lib/libexpat.so: could not read symbols: File in wrong format 에러발생시 |
| {{{ |
| # rm -Rf /usr/lib/libexpat.so |
| # ln -s /lib64/libexpat.so.0.5.0 /usr/lib/libexpat.so |
| }}} |
| !아파치 path 설정 |
| {{{ |
| vi /etc/profile |
| >>>>>>>>>>>>>>>>>>>>>> |
| PATH=$PATH:/usr/local/apache2/bin |
| export PATH |
| <<<<<<<<<<<<<<<<<<<<<< |
| }}} |
|
| !아파치 서비스 등록 |
| *아파치의 apachectl을 service에 등록 |
| {{{ |
| 기존 파일이 있을경우 덥어쓰기 한다. |
| 기본설치된 아파치의 설정 파일 임. |
|
| cp /usr/local/apache2/bin/apachectl /etc/init.d/httpd |
|
| vi /etc/init.d/httpd |
| >>>>>>>>>>>>>>>>>>>>>>>>> |
| # chkconfig: - 92 92 |
| # description: Apache Web Server Version 2.0.xx |
| <<<<<<<<<<<<<<<<<<<<<<<<< |
| }}} |
| *service 등록 |
| {{{ |
| chkconfig --add httpd |
| chkconfig --level 35 httpd on |
| chkconfig --list httpd |
| }}} |
| *service 수행 |
| {{{ |
| service httpd start |
| }}} |
|
| !기본 환결 설정 |
| {{{ |
| vi /usr/local/apache2/conf/httpd.conf |
| >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> |
| #서버명 |
| ServerName localhost:80 |
|
| #index 수정 |
| DirectoryIndex index.html index.html.var index.php |
| <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< |
| }}} |