패키지로 apache 웹서버를 설치하기 싫은 이들을 위한 글
마법의 문장
sudo apt-get install apache2
를 쳐서 끝내기 싫은 분들을 위해 이 글을 바칩니다.
1. 사전 작업
Apache HTTP Server는 사전에 몇 가지를 설치해야 합니다.
-c compiler: 이것만큼은 어쩔 수 없었다. 귀찮아서... apt-get install build-essential
-APR: http://apache.tt.co.kr//apr/apr-1.4.8.tar.gz
->rm: cannot remove 'libtoolT': No such file or directory 발생 시 cp -arp libtool libtoolT
->./configure --prefix=/usr/local/apr
->make
->sudo make install
-APR Util: http://apache.tt.co.kr//apr/apr-util-1.5.2.tar.gz
->sudo ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
->make
->sudo make install
-PCRE(v8.33) : ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.33.tar.gz
->./configure --prefix=/usr/local/pcre
->make
->sudo make install
-Apache : http://apache.tt.co.kr//httpd/httpd-2.4.6.tar.gz
->./configure --prefix=/home/apache/apache2 --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre --enable-module=so --enable-so
->make
->sudo make install
설치 후
세팅: /home/apache/apache2/conf/httpd.conf에서 ServerName에 IP 입력
실행: sudo /home/apache/apache2/bin/apachectl start
결론: sudo apt-get install apache2