How To Create Virtual Host With Xampp

How To Create Virtual Host With Xampp

910 511 blogoverload

How To Create Virtual Host With Xampp

  • Go to Google and Search “Download Xampp” then Click on the first link. Or simply click here

How to create virtual host With Xampp

 

  • Then Install the program in your Any drive and run it.
  • Now go to Xampp folder in your drive and click on xampp-control

  • This window will be opened

  • Start Apache and MySQL Server
  • Now go to your favorite search English and enter “localhost”. If this window appears then it means that your localhost is working.

  • Congratulations now you can create a virtual host!

How To Create Virtual Host With Xampp For WordPress Website

  • Go to wordpress.org  and download WordPress.
  • Extract the WordPress file in xampp>htdocs

  • Rename the folder with your desired website name.

 

  • Now, to run this WordPress website on a virtual host go to C:\Windows\System32\drivers\etc , and open hosts file in Notepad.

  • Enter this line
127.0.0.1            blogoverload.test

below

 #               ::1             localhost

Use your website name instead of blogoverload

  • Save and close it

Check Out: Mac Repairs in Moreton Bay 

  • Now go to xampp\apache\conf\extra and open “httpd-vhosts.conf” on notepad.

  • Add this line
<VirtualHost 127.0.0.1:80>

    DocumentRoot "E:/xampp/htdocs/blogoverload"

    ServerName blogoverload.test

</VirtualHost>

Use your website name instead of blogoverload

  • Stop and start the Xampp “Apache” and “MySQL” servers again.
  • Go to Google chrome and enter your URL “blogoverload.test”.

How To Create Virtual Host With Xampp

Now you can work on your WordPress website 😊

  • Enter your website name in the Database name field and select utf8mb4_general_ci in the field next to it. And Click Create.

How To Create Virtual Host With Xampp

  • Your database is now created successfully.
  • Now go back to blogoverload.test and click on Let’s Go
  • Use the following settings and enter your database name is the Database name field.

How To Create Virtual Host With Xampp

  • Click on Submit
  • Now click on “Run the installation”

How To Create Virtual Host With Xampp

  • Now enter your desired information.

  • Click on install WordPress
  • Success!

How To Create Virtual Host With Xampp for wordpress

  • Click on Login
  • Now you are ready to work on your WordPress website without domain and hosting 😊 just enter your username and password.

How to create virtual host With Xampp

  • Whenever you want to open your WordPress website again just start the “Apache” and “MySQL” server in Xampp control and open your website on Chrome.

Thanks for reading our blog, make sure to leave a like and comment.

 
Spread the love

    error: Content is protected !!