Installing and Configuring WampServer

Step-by-step instructions for installing a local WAMP server on Windows.

Installation:

Download http://www.wampserver.com/ru/
Install the server, for example in c:\wamp
Create a test.dev folder in c:\wamp\www and create an index.php file inside it
Add the following to index.php:

<?php
echo ('hello word');
?>

Restart WAMP. The index.php file is now available at: http://localhost/test.dev

Configuring virtual hosts in WAMP:

Open the hosts file at C:\Windows\system32\drivers\etc\hosts
Add 127.0.0.1 test.dev to the end of the file
Open httpd.conf in C:\wamp\bin\apache\apache2.2.11\conf and uncomment #Include conf/extra/httpd-vhosts.conf by removing the # character
Open httpd-vhosts.conf at C:\wamp\bin\apache\apache2.2.11\conf\extra\httpd-vhosts.conf
Add the following code to the end of the file:

ServerAdmin webmaster@localhost
DocumentRoot "c:/wamp/www"
ServerName localhost
ErrorLog "logs/localhost-error.log"
CustomLog "logs/localhost-access.log" common
DocumentRoot "c:/wamp/www/test.dev"
ServerName test.dev
Options Indexes FollowSymLinks
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1

The website is now available at:
http://test.dev