Windowsサーバー構築マニュアル

Apache2 インストール




■Apache2ダウンロード
ヒント ヒント

ダウンロードサイトより
最新版リリースのapache_2.x.x-win32-x86-no_ssl.msiをダウンロード。

■Apache2インストール
00.ダウンロードしたapache_2.x.x-win32-x86-no_ssl.msiをダブルクリック。

Apache2インストール
01.「Next」をクリック


Apache2インストール
02.「I accept the terms in the license agreement」を選択して「Next」をクリック。


Apache2インストール
03.「Next」をクリック。


Apache2インストール
04.server's information設定
NetworkDomainに「example.com」を入力。
ServerNameに「www.example.com」を入力。
Administrator'sEmailAddressに「webmaster@example.com」を入力。
「for All Users, on Port 80, as a Service -- Recommended.」を選択して「Next」をクリック。


Apache2インストール
05.「Typical」を選択して「Next」をクリック。


Apache2インストール
06.「Next」をクリック。


Apache2インストール
07.「Install」をクリック。


Apache2インストール
08.「Finish」をクリックしてインストール完了。

■インストール確認
http://localhost/にアクセスして「It works!」と表示されることを確認。

■httpd.conf編集
C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.confを開く。
DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs"
↓
DocumentRoot "D:/public_html" ←変更

#<Directory "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs">
↓
<Directory "D:/public_html"> ←変更

Options Indexes FollowSymLinks
↓
Options IncludesNoExec ExecCGI FollowSymLinks ←変更 (217行目付近)

AllowOverride None
↓
AllowOverride All ←変更 (224行目付近)

DirectoryIndex index.html
↓
DirectoryIndex index.html index.cgi index.php ←追加 (239行目付近)

ヒント ヒント

Apacheを再起動するとhttpd.confの設定が反映されます。


Home PageTop Last updated 2010-02-11

このサイトはリンクフリーです。ご自由にリンクしてください。 Copyright windows.server-manual.com