itheart.com
   phpGroupWare  |   地域ITサポート  |   ITはあとについて          Web全体 このサイト内   







Apache をインストールします。Apache は DSO 対応としてインストールします。

0. インストール前の準備

すでに Apache を起動している場合は、必ず停止してからインストールして下さい。
また、rpm でインストールしている場合は、アンインストールをお勧めします。


Apacheのインストールは、以下の手順で行います。

1. Apache のソースファイルを /usr/local/src へ展開

$ su - root
Password:
# cd /usr/local/src
# tar xzvf httpd-2.0.51.tar.gz
#


2. Apache を展開したディレクトリに移動し、configure スクリプトを実行

# cd httpd-2.0.51
# ./configure --enable-so
#


3. Apache のコンパイルとインストール

# make
# make install
#

※/usr/local/apache2 にインストールします。


4. Apache の環境設定 (httpd.conf)

# cd /usr/local/apache2/conf
# vi httpd.conf

ServerName,DocumentRoot をご自身の環境に合わせて変更してください。

ServerName www.itheart.net:80
DocumentRoot /home/httpd/html

※ /home/httpd/html を DocumentRoot とする場合です。皆様の環境に合わせて変更してください。


5. DocumentRootディレクトリの作成および設定

# mkdir -p /home/httpd/html
# chmod 550 /home/httpd/html
# chown nobody:nobody /home/httpd/html
#


6. Apache の自動起動設定(rcファイル)

※まず rcファイルをダウンロードして、サーバマシンに転送してください。
# cp httpd2 /etc/rc.d/init.d
(httpd2 は転送したファイルの場所を指定してください)
# cd /etc/rc.d/init.d
# chmod 755 httpd2
# chkconfig --add httpd2
# chkconfig --list httpd2
httpd 0:off 1:off 2:off 3:on 4:on 5:on 6:off
#

※ Apache の起動は、PHP のインストールを行った後に行います。


ITはあと

E-Mail:your@itheart.com

TEL:0776-67-5502

FAX:0776-67-5602