Creating VirtualHost on your local computer to start simple index.php

When you start playing with PHP applications there is a moment when you would like to have your website run locally. You can build local domain for you application in some steps that I present you below.

You need to have installed xampp environment. Full instruction for xampp installation you can find in my previous post.

Now we can start the first step. Under windows operating system you need to go to:

C:\Windows\System32\drivers\etc

Open file named hosts and type at the end of it the line with your local domain name, for example:

mydomain.com

Leave a Reply