Install WAMP:

Download the latest version of WAMP from here: http://www.wampserver.com/en/

Now, download all the Visual C++ Redistribuable Packages which are pre-requirement for installing WAMP. To find all the packages together, download the zip form here: http://wampserver.aviatechno.net/?lang=en&prerequis=afficher#vcpackages

Unzip and install one by one.

Now, install downloaded WAMP.

Once finished open http://localhost in your browser.

Go to PHPmyadmin from this page and set Password.

Create Virtual Hosts:

  • Open your Apache configuration file located in C:\wamp\bin\Apache#.#.#\conf\httpd.conf, where #.#.# corresponds to the version of Apache that you are running in WAMP.
  • Search for “LoadModule vhost_alias_module” (without the quotes) and uncomment the LoadModule vhost_alias_module modules/mod_vhost_alias.so directive below.
  • Search for “Virtual Hosts” (without the quotes) and uncomment the Include conf/extra/httpd-vhosts.conf directive below.
  • Save and close the httpd.conf file.
  • Open your Apache Virtual Hosts (vhost) configuration file located one directory down from the Apache configuration file directory in C:\wamp\bin\Apache#.#.#\conf\extra\httpd-vhosts.conf.
  • Add the configuration for your new vhost. While virtual host configuration is outside the scope of this article, I suggest you visit the Apache project’s documentation. It does a decent job of explaining the various configuration directives. I have included mine below with some comments as a starting point.

2016-11-20_2-52-59

  • Save and close the httpd-vhosts.conf file.
  • Open your Windows hosts file located in C:\Windows\System32\drivers\etc\hosts.
  • Add a new entry for the vhost you created.
  • Save and close the hosts file.
  • Resart All Services in WAMP, pop open a web browser and access your new virtual host. Celebrate!

Advertisements