Support » Networking WordPress » Cloning Multisite for testing environment

  • Resolved Carmdq

    (@carmdq)


    Hi. I’m currently running a multisite for my portfolio site (example.com). At first, I created a sub-domain (sub.example.com) to upload the content and customize my template. Then I moved everything to the root folder by following the information on the codex. Now that the site is live, I would like to create a test environment for further customization without touching what’s live right now.

    I was hoping to somehow clone my current site to a sub-domain or somewhere protected, so I can test the customization with the actual content.

    What do you guys think is the best procedure here? Should I go with a sub-domain or go local? And do you think I should do a manual WP install and import the database or is there an automated process that you recommend?

    Thanks

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

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    I would do it locally. Cloning Multisite on your live server is … scary IMO.

    Thread Starter Carmdq

    (@carmdq)

    Thanks Mika. I will look into this. I guess the most complicated part would be the database references and links. I have found this method to make a copy to a local environment.

    What do you think?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    I would copy all the posts and the DB down to my local host and then just search/replace the DB for example.com and make it example.loc

    Then add in my hosts file that example.loc lives on my computer, and have a day with it 🙂

    Thread Starter Carmdq

    (@carmdq)

    I assume .loc is for local. But I’ve never tried messing with the hosts file. Do you just need to insert the IP address and example.loc in it?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Read http://wpmututorials.com/how-to/using-a-hosts-file/ 🙂

    .loc is a made up TLD, I just use it since I know it’s not real 🙂

    Thread Starter Carmdq

    (@carmdq)

    What I don’t quite get yet, is why would you would change .com for .loc since you’re modifying the hosts file. Wouldn’t that be redirecting the browser to your computer avoiding the need to touch the database?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Because everything, including the DB, is on my computer. I use it for running MAMP (or XAMMP or whatever) locally, so I can edit everything without fear for messing up the real site.

    Thread Starter Carmdq

    (@carmdq)

    Thanks Mika.

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