Installing multiple instances on IIS (3 posts)

  1. brettm
    Posted 8 years ago #

    I successfully got wordpress installed on IIS/MySQl/php on win2k3 server. But am struggling with a 2nd instance on the same machine.

    I assumed setting up a 2nd instance would be a breeze. I created a 2nd virtual host for my new domain name (lets call it http://www.mysite2.com) and pointed it at a second set of word press files in a different directory. I edited wp-config.php to point to a different database with different username/password.

    However... for some reason, when i hit http://www.mysite2.com i get the same pages loaded from http://www.mysite1.com.

    I assumed that somehow the vhost for mysite2 was pointing at the web directories for mysite1. Not so, I can place a foobar.htm file in the root of mysite2 and hit it ok and get a 404 (expected) from mysite1. From IISAdmin the home directories appear to be set correctly.

    I am utterly confused. It's as if somehow the php ISAPI is pointing at a hardcoded path.

    Any pointers to documentation on installing a 2nd instance on IIS?

  2. brettm
    Posted 8 years ago #

    figured it out - my bad.

    at some point a LONG time ago, when i setup the first instance, i had a hard coded

    doc_root =

    line in my php.ini.

    i removed this and now it loads the right webroot for each instance.

  3. Chris_K
    Posted 8 years ago #

    Thanks for the followup - glad you got it sorted out! I was sure drawing blanks...

    Can you mark this thread as resolved then?

Topic Closed

This topic has been closed to new replies.

About this Topic