Step One
The Installation process of WampServer2 was painless. http://www.wampserver.com/en/
The harder part was getting it configured the way I wanted to use it. Now I’ve sussed it, it’s a beauty.
I Installed WampServer2 in C:\wamp
My websites are located in D:\websites
The webroot of my ‘project’ is:-
D:\websites\project\htdocs
I would like to use this URL for ‘project’:-
http://www.project.dev/
Once you’ve installed WampServer2 check http://www.wampserver.com/en/presentation.php for an overview of how to use it.
So, now you’re all up and running and you can see the wampserver page at http://localhost/
Step Two
Seeing your website ‘project’ at http://www.project.dev/
Find your hosts file:-
C:\windows\system32\drivers\etc\
open hosts in your text editor
At the end of the file add the following:-
127.0.0.1 www.project.dev project.dev
Find your httpd-vhost.conf file:-
C:\wamp\bin\apache\apache2.2.8\conf\extra\
open httpd-vhost.conf in your text editor
At the end of the file add the following:-
<VirtualHost *:80> ServerAdmin webmaster@project.dev DocumentRoot "D:\websites\project\htdocs" ServerName project.dev ServerAlias www.project.dev ErrorLog "logs/project.dev-error.log" CustomLog "logs/project.dev-access.log" common </VirtualHost>
Save both these files and restart wamp:-
Click on the WampServer icon in the system tray
Click ‘Restart all Services’
Ensuring that WampServer has started successfully try visiting http://www.project.dev/
As long as you’ve created this path:-
D:\websites\project\htdocs
You should see at least:-
Index of /project
Now go ahead and build your website locally.