INDEX
[Apache]mod_sslのインストール例
1  NI-Lab.  2002/07/15(Mon) 01:15
[Apache]mod_sslのインストール例

http://www.modssl.org/example/
mod_ssl: Example, Installation

↑ここにある
"Step-by-step installation illustration"
を参考に自分なりに良さそうなインストール例を以下に作成してみた。

1. Fetch and extract the distributions of Apache, mod_ssl and OpenSSL
# cd /usr/local/src
# lynx http://httpd.apache.org/dist/httpd/apache_1.3.26.tar.gz
# lynx ftp://ftp.modssl.org/source/mod_ssl-2.8.10-1.3.26.tar.gz
# lynx ftp://ftp.openssl.org/source/openssl-0.9.6d.tar.gz
# gzip -d -c apache_1.3.26.tar.gz | tar xvf -
# gzip -d -c mod_ssl-2.8.10-1.3.26.tar.gz | tar xvf -
# gzip -d -c openssl-0.9.6d.tar.gz | tar xvf -

2. Build and Install OpenSSL
# cd openssl-0.9.6d
# ./config -fPIC
# make
# make test
# make install
# cd ..

3. Build the SSL-aware Apache
# cd mod_ssl-2.8.10-1.3.26
# ./configure --with-apache=../apache_1.3.26 --with-ssl=../openssl-0.9.6d --prefix=/usr/local/apache --enable-shared=ssl --enable-module=so
# cd ..

------------------------------------------------------------------
ちなみに、mode_ssl のv ./configure 時に

Now proceed with the following commands (Bourne-Shell syntax):
$ cd ../apache_1.3.26
$ SSL_BASE=/path/to/openssl ./configure ... --enable-module=ssl
$ make
$ make certificate
$ make install

なんて出力されたら失敗。
たぶん、./configure のパラメータを間違えてる。
正しくは(というかここでやってるやり方では)、こんな感じに出力される。

Now proceed with the following commands:
$ cd ../apache_1.3.26
$ make
$ make certificate
$ make install
------------------------------------------------------------------

4. Install the SSL-aware Apache
# cd apache_1.3.26
# make
# make certificate
# make install

5. Copy modules(Ex. mod_dav)
# cp /usr/local/apache.old/libexec/libdav.so /usr/local/apache/libexec/libdav.so
6. Fire up your SSL-aware Apache and try it out
# cd /usr/local/apache/bin
# ./apachectl sslstart
# ./apachectl stop
# netscape https://local-host-name/

7. Cleanup after work
$ rm -rf apache_1.3.26
$ rm -rf mod_ssl-2.8.10-1.3.26
$ rm -rf openssl-0.9.6d