apache2

Macportでのインストールがすんなりできなかったので 個別にインストールするためのメモ
ここからダウンロード
適当なところにおいて解凍、次にapr,apr-util,apacheの順にインストール

$ cd /usr/local/src
$ sudo tar xjvf httpd-2.2.8.tar.bz2
 
#aprをインストール
$ cd httpd-2.2.8/srclib/apr
$ ./configure --prefix=/usr/local/apr-httpd/
$ make
$ sudo make install
 
#apr-utilをインストール
$ cd ../apr-util
$  ./configure --prefix=/usr/local/apr-util-httpd/ --with-apr=/usr/local/apr-httpd/
$ make
$ sudo make install
 
#apacheをインストール
$ cd ../../
$ ./configure --with-apr=/usr/local/apr-httpd/ --with-apr-util=/usr/local/apr-util-httpd/ 
--enable-rewite=shared --enable-ssl=shared --enable-shared=yes --enable-dav=yes
$ make
$ sudo make install