最新の ソースファイルを本家よりダウンロードします。
好きな場所にダウンロードし、展開してください。
$ wget URL
$ tar zxvf xxxx.tar.gz
$ cd http-xxxx/
$ ./configure --enable-module=so
$ make
$ su
# make install
インストール先を指定していない場合
Apache_conf=/usr/local/apache2/conf
Document_root=/usr/loca/apache2/htdocs
Apache_log=/usr/local/apache2/logs
設定を変更する場合は、<Install Dir>/conf/httpd.confを修正します。
ログ解析を行う場合は
CustomLog [Log Path] common
↓
#CustomLog [Log Path] common
#CustomLog [Log Path] common
↓
CustomLog [Log Path] combined
◇ 起動
# /usr/local/apache2/bin/apachectl start
◇停止
# /usr/local/apache2/bin/apachectl stop
◇自動起動
# ln -s /usr/local/apache2/bin/apachectl /etc/rc3.d/S90httpd
※ランレベル3の場合
基本的に、何もしなくても動作はします。
※CGIやhtaccessとかは動きません。
最低、httpd.conf内の
User Group ServerAdmin ServerName
ぐらいは修正しておいた方がいいと思いますが・・・