目次



準備

インストール

  1. ソースの取得
    /usr/local/srcにhttpd-2.2.12.tar.gzを取得。
    # wget -P /usr/local/src http://www.ring.gr.jp/archives/net/apache/httpd/httpd-2.2.12.tar.gz
  2. ソースの解凍
    /usr/local/srcにhttpd-2.2.12フォルダが作成される。
    # cd /usr/local/src
    # tar zxvf httpd-2.2.12.tar.gz
  3. APR(Apache Portable Runtime)のインストール
    1. apr
      configureのヘルプ
      # cd /usr/local/src/httpd-2.2.12/srclib/apr
      # ./configure --prefix=/usr/local/httpd-2.2.12/apr
      # make
      # make install
    2. apr-util
      configureのヘルプ
      # cd /usr/local/src/httpd-2.2.12/srclib/apr-util
      # ./configure --prefix=/usr/local/httpd-2.2.12/apr-util --with-apr=/usr/local/httpd-2.2.12/apr
      # make
      # make install
  4. コンパイル設定
    configureのヘルプ
    # cd /usr/local/src/httpd-2.2.12
    # ./configure \
    > --prefix=/usr/local/httpd-2.2.12 \
    > --enable-so \
    > --enable-rewrite=shared \
    > --enable-ssl=shared \
    > --enable-dav=shared \
    > --enable-dav-fs=shared \
    > --with-ssl=/usr/local/ssl/ \
    > --with-apr=/usr/local/httpd-2.2.12/apr \
    > --with-apr-util=/usr/local/httpd-2.2.12/apr-util
  5. インストール
    # make
    # make install
  6. シンボリックリンクの作成
    # ln -s /usr/local/httpd-2.2.12 /usr/local/apache2

初期設定

SSL対応設定

認証局(CA)の構築

SSLサーバ構築

Apacheへの埋め込み

起動

下記のコマンドで起動、停止、再起動を行う

# /usr/local/apache2/bin/apachectl start    ← 起動
# /usr/local/apache2/bin/apachectl stop     ← 停止
# /usr/local/apache2/bin/apachectl restart  ← 再起動

動作確認

http,httpsでそれぞれアクセスし「It works!」が表示されればOK。

自動起動設定


トップ   編集 凍結解除 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2023-05-10 (水) 20:53:34