家計簿を作る(3)
第2回に引き続きサーバの設定.
Apacheをインストールします.
RPMやportsなんかで一発ですが, 敢えてここではソースからインストールする方法について記録. configureのオプションをすぐ忘れてしまうので.
加えて, OpenSSL, mod_ssl もインストール.
ソースの入手
Apache HTTP Server Projectからダウンロードします.
http://httpd.apache.org/
OpenSSL:
http://www.openssl.org/
mod_ssl はこちらから
http://www.modssl.org/
OpenSSLのインストール
# tar xvzfp openssl-0.9.x.tar.gz
# cd openssl-0.9.x
# ./config -fPIC
# make
# make test
# make install
# tar xvzfp mod_ssl-2.8.xx-1.3.xx.tar.gz # cd mod_ssl-2.8.xx-1.3.xx # ./configure --with-apache=../apache_1.3.xx \ --with-ssl=../openssl-0.9.x \ --prefix=/usr/local/apache/ \ --enable-shared=ssl \ --enable-module=so \ --enable-rule=SHARED_CORE \ --enable-module=rewrite \ --enable-shared=rewrite # cd ../apache_1.3.xx # make (つまりapacheソースディレクトリ内でmake) # make certificate # make install # apachectl startssl (起動)