Apache2.2 をソースからインストールする

1) とにかくダウンロード。ftp でも wget でも。
wget http://www.ring.gr.jp/archives/net/apache/httpd/httpd-2.2.8.tar.gz

2) configure
別にサーバが非力なわけじゃないとか、なんだかよくわかんないというときは、こうしておけば、思う存分いろいろできる。
(開発環境向け?)
./configure –enable-mods-shared=most

3) make しれ
make

4) make install しれ
make install

5) 起動しれ
/usr/local/apache2/bin/apachectl start

6) 自動的に起動の設定
cp か ln で
cp /usr/local/apache2/bin/apachectl /etc/init.d/httpd
chkconfig –add httpd

なんと apachectl は、ちょっと手を加えてやらないと chkconfig に対応していないらしい。
なるべく最初のほうに書きを追加して、chkconfig 完了。

# chkconfig: – 85 15
# description: Apache HTTP Server.

__

configure 設定例(サーバ非力版、節約版)

$ ./configure –enable-rewrite –enable-so –enable-suexec \
–enable-vhost-alias –with-suexec-caller=apache \
–with-suexec-uidmin=500 –with-suexec-gidmin=500 \
–with-suexec-docroot=/home –enable-ssl

コメントする