How to setup Xampp on local machine and create Virtual Host?

Posted By: Akash Singh Published: 14, Jan 2024

How to setup Xampp on local machine and create Virtual Host?


XAMPP Installation Guideline and Virtual host setup

Step 1: Install Xampp

Step2: Direct download link is here https://www.apachefriends.org/download.html.

Step 3: Install the Xampp

Step 4:Create Virtual Host.

Step 5:You have to open Xampp folder where you have placed.

Step 6:You have to open all the folder in this order.

xampp>apache>conf>extra>httpd-vhosts.cnf after it you have to open editor and paste this file two times end of the page.

     <VirtualHost *:80>
       DocumentRoot "D:\xampp\htdocs\estore"
       ServerName apis.figmanetsolutions.com
       <Directory "D:\xampp\htdocs\estore">
       </Directory>
     </VirtualHost>
      

Step 7:After it you have to open run command by using this shortcut win+R. After it a hosts file will open and you have to edit and save

this at default location. But When you will try to save this file you will face a problem to avoid this you have to go search and type

NotePad select option run as administrator then edit and save.

Step 8: after it a folder will open and you can choose any editor and the paste these link two times end of the page.

        127.0.0.1 apis.figmanetsolutions.com

Step 9: Git download. git link link https://gitforwindows.org/.

Step 10: Git clone.

$ git clone https://github.com/YOUR_USERNAME/REPO.git use this command in terminal.

Step 11: Xampp Restart.