Windows環境でのApacheダウンロードとインストール・アンインストール方法

パソコン

Windows環境でのApacheダウンロード・インストール・アンインストール方法を記載します。
※ダウンロードファイルは、最新のものを選択してください。

ダウンロード

ここ へアクセス
[ダウンロード]をクリック。

[Files for Microsoft Windows]をクリック。

いくつか種類がありますが該当のものをクリック。
※ここでは、[ApacheHaus]をクリック。

[Download Locations]をクリックすると媒体のダウンロードが開始されます。

ダウンロードしたファイルを任意の場所に解凍。

[Apache24]フォルダが格納されていると思います。

そのフォルダをフォルダごと任意の場所へ移動します。
※ここでは、C:\直下に移動

インストール方法

スタートボタン右隣の[ここに入力して検索]に cmd と入れて検索するとコマンドプロンプトが表示されます。
コマンドプロンプトを開き以下コマンドを実行

#実行ファイル格納場所に移動
cd c:\Apache24\bin

#インストールの実行
httpd -k install

#以下の内容が返ってきたらインストール成功です。
#Installing the Apache2.4 service
#The Apache2.4 service is successfully installed.
#Testting httpd.conf….
#Errors reported here must be corrected before the service can be started.

スタートボタン右隣の[ここに入力して検索]に サービス と入れて検索するとサービスが表示されます。
サービスを開きApache24が起動できることを確認します。

ブラウザで以下を入力し検索
http://localhost

It Works!

と表示されていれば正常に動作しています。

アンインストール方法

コマンドプロンプトで以下コマンドを実行

#実行ファイル格納場所に移動
cd c:\Apache24\bin

#httpdを停止
httpd -k shutdown

#サービスを停止
httpd -k stop

#apacheアンインストール実行
httpd -k uninstall

サービスからApache24がなくなっていることを確認します。

c:\Apache24 も削除して完了です。

※ここに記載の手順は、すべてではありません。1例としてご参考ください。

コメント

タイトルとURLをコピーしました

Fatal error: Uncaught Error: Call to undefined function Smush\Core\Parser\str_contains() in /home/planetx01/earthweblog.com/public_html/wp-content/plugins/wp-smushit/core/parser/class-parser.php:373 Stack trace: #0 /home/planetx01/earthweblog.com/public_html/wp-content/plugins/wp-smushit/core/parser/class-parser.php(358): Smush\Core\Parser\Parser->sanitize_value('property') #1 /home/planetx01/earthweblog.com/public_html/wp-content/plugins/wp-smushit/core/parser/class-parser.php(157): Smush\Core\Parser\Parser->is_safe('property') #2 /home/planetx01/earthweblog.com/public_html/wp-content/plugins/wp-smushit/core/parser/class-parser.php(120): Smush\Core\Parser\Parser->get_element_attributes('<meta property=...', 'https://earthwe...') #3 /home/planetx01/earthweblog.com/public_html/wp-content/plugins/wp-smushit/core/parser/class-page-parser.php(35): Smush\Core\Parser\Parser->get_elements_with_image_attributes('<!doctype html>...', 'https://earthwe...') #4 /home/planetx01/earthweblog.com/public_html/wp-content/plugins/wp-smushit in /home/planetx01/earthweblog.com/public_html/wp-content/plugins/wp-smushit/core/parser/class-parser.php on line 373