aml.tir.jpで使用する目的で、Cにのみインストール。
export APACHE_VERSION=2.0.59 wget http://ftp.kddilabs.jp/infosystems/apache/httpd/httpd-${APACHE_VERSION}.tar.bz2 tar xvfj httpd-${APACHE_VERSION}.tar.bz2 cd httpd-${APACHE_VERSION} CFLAGS="-O2 -march=pentium4" ./configure \ --prefix=/usr/local/httpd-${APACHE_VERSION} \ --enable-deflate \ --enable-expires \ --enable-headers \ --enable-http \ --enable-cgi \ --enable-vhost-alias \ --disable-auth-digest \ --disable-include \ --disable-cgid \ --disable-negotiation \ --disable-setenvif \ --disable-userdir \ --disable-imap nice make all su make install rm -f /usr/local/httpd ln -sf httpd-${APACHE_VERSION} /usr/local/httpd
自動起動設定を追加しておく。 将来は、ちゃんと専用アカウントを用意して、セキュリティ的に万全にしたいが、今は手抜きする。
echo "su - nekoie -c '/usr/local/httpd/bin/apachectl start'" \ >> /etc/rc.d/rc.local
mod_fastcgiを入れる。
wget http://fastcgi.com/dist/mod_fastcgi-2.4.2.tar.gz tar xvfz mod_fastcgi-2.4.2.tar.gz cd mod_fastcgi-2.4.2 cp Makefile.AP2 Makefile make top_dir=/usr/local/httpd su make top_dir=/usr/local/httpd install
まだhttpd.confをいじっていないので、あとでいじる事。既にNにインストールしたapache2のhttpd.confが参考になる筈。
いじった。 これもsvnに保存した方がいい気がするが……。