amlaboのブログ

忘備録としてのブログです。BookReview、日常生活、Web、CMS、Internet、アイディア等雑多。

apache のインストール

ソースからapache2.2.17をインストール。
の前に

# aprのインストール
apr(Apache Portable Runtime)をインストール。

・apr-1.0.0.tar.gz
cd /usr/local/src
tar xvzf apr-1.0.0.tar.gz
./configure
make
make instal

・apr-util-1.0.0.tar.gz
cd /usr/local/src
tar xvzf apr-util-1.0.0.tar.gz
./configure --with-apr=/usr/local/apr
make
make install


を済ませておいて

./configure \
--prefix=/usr/local/httpd \
--libexecdir=/usr/local/httpd/modules\
--sbindir=/usr/local/httpd/sbin \
--bindir=/usr/local/httpd/bin \
--localstatedir=/var/log/httpd\
--sysconfdir=/etc/httpd \
--enable-mods-shared=all\
--enable-so \
--enable-ssl \
--with-ssl=/usr/local/ssl\
--with-mpm=worker \
--enable-rewrite=shared \
--with-included-apr \
--enable-dav=yes

この後は、定番の

make
make install