How to run multiple versions of WP on WAMP installed with IIS 7.5
Posted by: foxdenvixen (---.hsd1.co.comcast.net)
Date: March 08, 2012 03:31PM

I have been all over the Web looking for answers on this. I did find something here but it does not seem to fit my scenerio. I run Windows 7 64 bit with IIS 7.5 under localhost. WAMP is under localhost:8080. I found that I can configure hosts 127.0.0.1:8080 with a second WP website. I can remove the # in front of Include conf/extra/httpd-vhosts.conf line in the httpd.conf file. I already have it listening to :8080. However, where I am getting confused is in the httpd-vhosts.conf file. Here is what I currently have.

#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:[httpd.apache.org];
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
NameVirtualHost *:80

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "c:/Apache2/docs/dummy-host.example.com"
ServerName dummy-host.example.com
ServerAlias www.dummy-host.example.com
ErrorLog "logs/dummy-host.example.com-error.log"
CustomLog "logs/dummy-host.example.com-access.log" common
</VirtualHost>

<VirtualHost *:80>
ServerAdmin webmaster@dummy-host2.example.com
DocumentRoot "c:/Apache2/docs/dummy-host2.example.com"
ServerName dummy-host2.example.com
ErrorLog "logs/dummy-host2.example.com-error.log"
CustomLog "logs/dummy-host2.example.com-access.log" common
</VirtualHost>

On this site - [sumtips.com] - it says to use this code at the end.
'
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot "c:/wamp/www"
ServerName localhost
ErrorLog "logs/localhost-error.log"
CustomLog "logs/localhost-access.log" common
</VirtualHost>
<VirtualHost *:80>
#ServerAdmin webmaster@mysite
DocumentRoot "c:/wamp/www/mysite"
ServerName mysite
ErrorLog "logs/mysite-error.log"
CustomLog "logs/mysite-access.log" common
<directory "c:/wamp/www/mysite">
Options Indexes FollowSymLinks
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</directory>
</VirtualHost>

There are actually more instructions for the hosts file like adding -
127.0.0.1 mysite
127.0.0.1 myothersite
127.0.0.1 localhost.localdomain

which as I stated before I changed the 127.0.0.1 to 127.0.0.1:8080 and then added the names of my WP sites. In the example above do I change all the instances of "mysite" to the actual WP site name? If I have several WP sites that I am testing, do I add more lines as above? Do I change the VirtualHost*:80 to VirtualHost*:8080? I use Dreamweaver CS5.5 as my editor and want to work with multiple WP sites instead of only being able to run one at a time so I don't run into local server problems.Please help me figure this out.

Also on the same site is this - [sumtips.com]. From what I have read I don't need to set up sub domains. I am testing several different sites for different clients before I go live with them. With IIS I can have as many sites as I want and I don't have to tweak anything. This is confusing me. Thank you for your help.

Options: ReplyQuote
Re: How to run multiple versions of WP on WAMP installed with IIS 7.5
Posted by: yfastud (Moderator)
Date: March 09, 2012 01:36AM


Options: ReplyQuote
Re: How to run multiple versions of WP on WAMP installed with IIS 7.5
Posted by: foxdenvixen (---.hsd1.co.comcast.net)
Date: March 09, 2012 02:03AM

Thank you for your reply but this still doesn't help me with the dilemma of running IIS on localhost and WAMP on localhost:8080 and what I REALLY need to change in order to get this to work for my situation.

Options: ReplyQuote


Sorry, only registered users may post in this forum.