Apache1.3系でmod_sslをインストールできるか確認する

DSOでインストール済みのApache1.3.34にmod_sslをインストールできるか確認する方法

このとき、opensslを/usr/local/sslにインストール済みとする。

 $ cd /usr/local/src
 $ wget http://www.modssl.org/source/mod_ssl-2.8.25-1.3.34.tar.gz
 $ tar xvfz mod_ssl-2.8.25-1.3.34.tar.gz
 $ cd mod_ssl-2.8.25-1.3.34
 $ ./configure --with-apxs=/usr/local/apache1.3.34/bin/apxs --with-ssl=/usr/loca
l/ssl
Configuring mod_ssl/2.8.16 for Apache/1.3.29
./configure:Error: Installed Apache doesn't contain Extended API (EAPI)

Extended API がないから×となる。
これではmod_sslをインストールをできないので、Apacheを再構築する必要がある。

解決策

Apacheのconfigure時に以下のようにする

 $ ./configure --enable-rule=EAPI \
 --enable-module=all \
 --enable-shared=max \
 --enable-module=so \
 --prefix=/usr/local/apache