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.

5 Responses to Installing and Configuring WampServer2

    • andij says:

      @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.

    • andij says:

      @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:-

      # Virtual hosts
      Include conf/extra/httpd-vhosts.conf

      Restart WampServer and try visiting http://www.project.dev/ again.

  1. Pingback: Setup local installation of Magento 1.0.19870 WampServer | andij.com

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>