• Resolved mstlaurent

    (@mstlaurent)


    So, I’m trying to clone our WordPress 3.5.1 sub-domain multisite production server to a test server. We are running on Windows 2008R2, IIS 7.5, MySQL 5.1. Here is what I am doing:

    1. Dump the database on the production server with mysqldump
    2. Copy all of the files in c:/inetpub/wordpress from the production server to the test server (same folder location on both).
    3. Import the MySQL dump into the test server database.
    4. Using the WordPress Search and Replace tool, replace all instances of the production server name in the wordpress database with the test server name.
    5. Replace the production server name in wp-config.php with the test server name.
    6. Remove all domain mapping entries.

    After this procedure, I can get to the root blog (testserver.example.com), and I can log in to the root blog admin (testserver.example.com/wp-admin). But when I try to get to any of the sub-domain blogs (blog.testserver.example.com) I get a 404 error. I have the wildcard DNS entry set up, so pinging any subdomain of testserver.example.com does hit the correct IP address.

    I’m stumped, been banging my head against this one for a couple days now. Any help would be appreciated.

    Thanks,
    Mark

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    What does the 404 look like? Your server’s basic one, or a WP one?

    Thread Starter mstlaurent

    (@mstlaurent)

    It’s the server 404.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Semi-good news then. It’s not WP.

    I have the wildcard DNS entry set up, so pinging any subdomain of testserver.example.com does hit the correct IP address.

    ALso good news.

    The problem is likely that while DNS sends the traffic to the right IP, the server hasn’t been told how to handle wildcards. On Apache (I don’t know IIS, sorry 🙁 ) the httpd.conf file has to have wildcards set up in VHOSTS. I don’t know the translation to IIS, but that’s the general place to look. Something on the server needs to be told “Wildcards mean go to c:/inetpub/wordpress”

    Thread Starter mstlaurent

    (@mstlaurent)

    AH! That was it. The binding in IIS was set to use the hostname of testserver.example.com. Removed the host name from the binding, and everything came up just fine.

    Thanks,
    Mark

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Help Cloning Multisite for test environment’ is closed to new replies.