How to Run Mutiple Localhosts Using WAMP (Windows Apache MySQL PHP)

.
wamp server small How to Run Mutiple Localhosts Using WAMP (Windows Apache MySQL PHP)Wamp is a web development platform on Windows allowing you to create dynamic web applications with Apache2, PHP and MySQL. This tutorial shows how to run multiple localhosts using WAMP (Windows Apache MySQL PHP). WAMPServer has been a very server for lots of PHP developers (who uses Windows environment). Here’s a simple tutorial on how to run multiple localhosts in WAMP.

WAMP setup localhost2Basic instructions:

  1. update apache.conf (attached) – Update your document root paths to the correct folders. ie – C:/dev/project/trunk/
  2. update hosts file (C:\Windows\System32\drivers\etc) – run as administrator to update.
  3. restart apache

If working:

dev.eviport.com points to svn checkout folder
localhost points to your usual local dev

hosts file:
127.0.0.1       localhost
127.0.0.1   dev.project.com

apache conf:
Comment out other document root lines and paste the following at the bottom of the file:

NameVirtualHost *:80
NameVirtualHost 127.0.0.1:80

<VirtualHost 127.0.0.1>
ServerName dev.project.com
DocumentRoot “D:/dev/project/trunk/”
<Directory “D:/dev/project/trunk/”>
allow from all
order allow,deny
AllowOverride All
</Directory>
DirectoryIndex index.html index.php
</VirtualHost>

<VirtualHost 127.0.0.1>
ServerName localhost
DocumentRoot “D:/dev/”
</VirtualHost>

@ Source

 How to Run Mutiple Localhosts Using WAMP (Windows Apache MySQL PHP)

About Frank Boros

Frank Boros has written 107 post in this blog.

Incoming search terms:

Be Sociable, Share!
  • more How to Run Mutiple Localhosts Using WAMP (Windows Apache MySQL PHP)

    You can leave a response, or trackback from your own site.

    Leave a Reply


    9 − eight =

    Powered by WordPress | Designed by: best suv | Thanks to trucks, infiniti suv and toyota suv
    show
     
    close
    Email
    Print
    WP Socializer Aakash Web
    promotepoint's Profile on Ping.sg