[Apache]
apache + mod_sslにて動かすにはまずmod_sslからconfigureします。
[root@server src]# cd /usr/local/src/mod_ssl-2.8.22-1.3.33
[root@server mod_ssl-2.8.22-1.3.33]# ./configure --with-apache=../apache_1.3.33 Configuring mod_ssl/2.8.22 for Apache/1.3.33 + Apache location: ../apache_1.3.33 (Version 1.3.33) + Auxiliary patch tool: ./etc/patch/patch (local) + Applying packages to Apache source tree: o Extended API (EAPI) o Distribution Documents o SSL Module Source o SSL Support o SSL Configuration Additions o SSL Module Documentation o Addons Done: source extension and patches successfully applied. Now proceed with the following commands (Bourne-Shell syntax): $ cd ../apache_1.3.33 $ SSL_BASE=/path/to/openssl ./configure ... --enable-module=ssl $ make $ make certificate $ make install
次にApacheのインストールです。
[root@server mod_perl-1.29]# cd ../apache_1.3.33
環境変数を設定を設定。
#システムにインストールされているopensslを使用
[root@server src]# SSL_BASE=SYSTEM
#システムにインストールされているmmを使用
[root@server src]# EAPI_MM=SYSTEM
#cofigureします
./configure \ --prefix=/usr/local/apache \ --sysconfdir=/usr/local/apache/conf \ --enable-module=all \ --enable-shared=max \ --disable-rule=WANTHSREGEX \ --enable-module=auth_dbm \ --with-perl=/usr/bin/perl \ --enable-suexec \ --suexec-docroot=/var/www \ --suexec-uidmin=51 --suexec-gidmin=51 \ --suexec-caller=apache \ --enable-rule=EAPI
※--enable-rule=EAPIがないと起動時に"please recompile it with -DEAPI"と怒られる。
※--enale-shared=ssl とすればDSOとしてビルドできます
#make
[root@server apache_1.3.33]# make
#インストールをする前に、ここで証明書を作成します(後で作成してもよい)
[root@server apache_1.3.33]# make certificate
#インストール
[root@server apache]# make install
#以前ApacheをRPMで入れていて、設定ファイルをそのまま流用した場合、モジュールのパスに注意してください。
[修正前] modules/libssl.so
[修正後] libexec/libssl.so
広告
