XAMPPを使ったローカルホストでプログラミングを行うための準備
対象者
これからプログラミングを始める人、またはローカル環境を構築しようとしている人向けです。
手順
1. XAMPPの起動
-
xampp-control.exe
を実行してXAMPPを起動します。
2. Apacheの起動
- XAMPPのコントロールパネルから「Apache」を起動します。
3. ローカルホストへの接続確認
- ブラウザを開き、URLに
http://localhost:80/
と入力します。 - 「404」以外のページが表示されれば、Apacheの起動が成功しています。
4. MySQLの起動と確認
- XAMPPのコントロールパネルから「MySQL」をスタートします。
-
MySQL Workbench
などのツールを使って、MySQLが正常に起動していることを確認します。
5. Gitリポジトリのクローン
- Visual Studioを起動し、「新しいターミナル」を開きます。
- ターミナルで
cd xampp56/htdocs
と入力し、htdocs
フォルダに移動します。 - 次に、
git clone
コマンドを使ってGitLabからリポジトリをクローンします。git clone <リポジトリのURL>