LoginSignup
1
0

More than 3 years have passed since last update.

Apache2.4インストール手順@Windows Server2012R2

Last updated at Posted at 2018-06-28

1.下記URLから最新版をダウンロード

 https://www.apachelounge.com/download/
 今回は Apache 2.4.29 Win64 をダウンロード

2.ZIPファイルを展開し、Apache24のフォルダを任意の場所へ格納

 例:「C:\Apache24」※Cドライブ直下へ格納

3.「C:\Apache24\conf\http.conf」を修正する

  フォルダのパスを変更
  37行目:ServerRoot "c:/Apache24"
  246行目:DocumentRoot "c:/Apache24/htdocs"
  247行目:<Directory "c:/Apache24/htdocs">
  364行目:ScriptAlias /cgi-bin/ "c:/Apache24/cgi-bin/"
  379行目:<Directory "c:/Apache24/cgi-bin">
  上記のファイルパスをApache24のフォルダを格納した場所に変更
  今回の例では変更不要
  ポート番号を設定する
  60行目:Listen 80
  使用するポート番号はデフォルトで80番となっているので
  通常はこれで問題ないですが、
  既に他のアプリケーションで使用していると分かっている場合には変更要

4.Apacheをサービスとして登録

 コマンドプロンプトからプログラムが配置されている
 ディレクトリに移動し「httpd -k install」を実行
 「サービス」の画面を確認してみると
 「Apache2.4」というサービスが追加されている

5.Apacheをサービス一覧から起動

 ブラウザを立ち上げ「http://localhost/
へアクセス
 次のように表示されればApacheは正常に起動している
 「It works!」

インスールの際に参考したサイト

1
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0