CentOS4にapache1.3+FastCGIをインストール

必要なもの
  1. apache本体
  2. mod_fastcgi
  3. FCGIperlモジュール

それぞれ

wget http://www.meisei-u.ac.jp/mirror/apache/dist/httpd/apache_1.3.41.tar.gz
wget http://www.fastcgi.com/dist/mod_fastcgi-2.4.6.tar.gz
yum install perl-FCGI

にて取得

インストール

MobaSiFのインストールガイド丸パクリ。

env OPTIM="-O2" ./configure \
--prefix=/usr/local/apache \
--enable-module=so \
--enable-module=vhost_alias \
--enable-module=rewrite \
--enable-suexec \
--suexec-caller=nobody \
--suexec-docroot=/home \
--activate-module=src/modules/fastcgi/libfastcgi.a

make
sudo make install

で終わり。


とりあえずスタート&終了を確認。

sudo /usr/local/apache/bin/apachectl start
sudo /usr/local/apache/bin/apachectl stop
自動起動設定

起動スクリプトapachectlをコピーする

sudo cp /usr/local/apache/bin/apachectl /etc/rc.d/init.d/httpd

次に、chkconfigの値を/etc/rc.d/init.d/httpdに記述

# chkconfig: 345 90 10
# description: Apache Boot

chkconfigに登録

sudo /sbin/chkconfig --add httpd

確認。

sudo /sbin/chkconfig --list httpd
httpd           0:off   1:off   2:off   3:on    4:on    5:on    6:off