memo.xight.org

/ / memo.xight.org

2003-05-21

Apache2 をとりあえず使ってみる

- インストール

# aptitude install apache2
Package apache2 is a virtual package provided by:
apache2-mpm-worker 2.0.45-3
apache2-mpm-threadpool 2.0.45-3
apache2-mpm-prefork 2.0.45-3
apache2-mpm-perchild 2.0.45-3
You should explicitly select one to install.

  と怒られた.
  どうやら apache2 はヴァーチャルパッケージ名らしい.

# apt-cache search apache2

パッケージ名 備考
apache2-mpm-perchild Apache2 用の実験的な高速 perchild スレッド化モデル
apache2-mpm-prefork Apache2 用の従来版モデル
apache2-mpm-threadpool Apache2 用の実験的な高速スレッドプールモデル
apache2-mpm-worker Apache2 用の高速スレッド化モデル

  よくわからないが threadpool を選んでみる.

# aptitude install apache2-mpm-threadpool

  Apache もあげたままなので,Port が重複していると最後の設定時に怒られた.

- /etc/apache2/httpd.conf ファイルが空っぽなので

# cp /etc/apache/httpd.conf /etc/apache2/httpd.conf


- 基本設定

# vi /etc/apache2/httpd.conf

ServerRoot /etc/apache2
LockFile /var/lock/apache2.lock
PidFile /var/run/apache2.pid
ScoreBoardFile /var/run/apache2.scoreboard


- httpd.conf のファイルをチェックする

# apache2ctl -t

  ServerType standalone
  がエラー出るからコメントアウト
  DSO 関係もエラー出るからコメントアウト

- ポート設定
  Portの設定は

# vi /etc/apache2/ports.conf

Listen 80

  を変更

- ディレクトリ毎の設定
  /etc/apache2/sites-available/default

- SSL 初期設定

# /usr/sbin/make-ssl-cert

  地域や組織名を入力
  server name は絶対に入れないといけないらしい.

- 起動しないから
  /etc/init.d/apache2 を見てみると…ということで

# vi /etc/default/apache2

NO_START=1

  を
NO_START=0

  に変更

- とりあえず無事起動
  Apache 1 系との併用も可能
カテゴリ: [Apache2]
2003-05 /

Color Reference

ChangeLogを検索
携帯電話からアクセス!

カテゴリ

最近の話題

リンク

過去ログ

Google

QR Code

Since
2002-11-28
Update
2008-12-02 10:52
Copyright © 2005 xight.org All Rights Reserved.