Apache HTTP Server 2.2.20をソースからインストール

前回はMySQLをソースからインストールしました。

今回はApacheをソースからインストールしてみます。

環境

CentOS 6.0
Apache 2.2.20(Apache Killer対策済バージョン)
paco 2.0.9(必須ではない)

インストール手順

# ソースをダウンロード
wget http://ftp.jaist.ac.jp/pub/apache/httpd/httpd-2.2.20.tar.gz
tar zxvf httpd-2.2.20.tar.gz
cd httpd-2.2.20

# configure
./configure --enable-so --enable-ssl --enable-module=rewrite

ここで下記エラー発生...

configure: error: ...No recognized SSL/TLS toolkit detected

OpenSSLがなかったのでインストールします。

yum install openssl-devel

# インストール作業再開
./configure --enable-so --enable-ssl --enable-module=rewrite
make
# pacoを使わない場合は make install のみ
paco -D make install

インストール完了です!

設定

# 起動設定 及び 起動確認
chkconfig httpd on
/etc/rc.d/init.d/httpd start

これでApacheのインストール作業は完了です!