Installing and Configuring WampServer2
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.
Comments
4 Responses to “Installing and Configuring WampServer2”
Leave a Reply

Hi,
I try exactly as above, but when i visiting http://www.project.dev/, it apear the wampserver configuration page.
and when i visiting http://www.project.dev/magento/, it apear page not found error.
Any step that i may do wrong?
@Conie
It sounds like you’ve not setup your VirtualHost configuration quite right, does the path for DocumentRoot “D:\websites\project\htdocs” exist?
Ensure that you restart WampServer after every configuration change you make within the httpd-vhost.conf file.
I followed your directions but have gotten the same issue. I get the config screen for http://www.project.dev and a page not found for any file in the htdocs folder.
@Harry
Can you check something for me?
Open C:\wamp\bin\apache\ApacheX.X.XX\conf\httpd.conf
Find “httpd-vhosts” (located very near the bottom of this file)
Make sure that it’s not commented out – i.e. remove the “#” from the beginning of the line so it looks like:-
Restart WampServer and try visiting http://www.project.dev/ again.