Installing and Configuring WampServer2

May 15, 2008 · Posted in Configuration, Installation, Magento 

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”

  1. conie on June 17th, 2009 8:31 am

    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?

  2. andij on June 25th, 2009 11:37 am

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

  3. Harry on December 3rd, 2009 9:24 pm

    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.

  4. andij on December 7th, 2009 12:25 pm

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

Leave a Reply