Trying to make a copy of a live site

Hi, I am trying to set up a test environment alongside our live wpmu site.
I was hoping to be able to copy the live site onto a test server, full site contents and all 265 databases, but I admit, I am struggling a bit in the dark here.

Here is our live site:
And here the test environment:

Obviously, the move was never going to work straight away with key settings in the copied site not configured right for the new test site URL.

So for the new test site I inserted these two lines into the theme functions.php file (BP Social):

And I changed this line in config.php from:
define( 'DOMAIN_CURRENT_SITE', '' );
define( 'DOMAIN_CURRENT_SITE', '' );

Now, the front end works on the new test site, but only when I comment out these lines in config.php:
define( 'MULTISITE', true );
define( 'SUBDOMAIN_INSTALL', true );
define( 'SUNRISE', 'on' );

as soon as these lines are left in, the new test site URL just re-directs to the live site.

And when I try to access the dashboard on the test site, I get the white screen ...

I know, I know - in over my head ... But I was hoping that some one could give me a hint as to what other settings I need to adjust in order to get the copy site up and running.


  • Mason
    • DEV MAN’s Sidekick

    Hiya Kristian,

    Did you use multi-db from here to create the 256 databases?

    What do you have in your db for wp_site? (This is separate from the wp_option of site and homeurl in wp_sitemeta)

    I'll ask a couple devs to drop by and take a look as well.


  • Ulrich
    • The Crimson Coder

    There are more places where you will want to change the URLs, mainly wp_site and wp_sitemeta as @masonjames mentioned.
    Also change the line "define('WP_DEBUG', false);" to "define('WP_DEBUG', true);" in wp-config.php. It will allow errors to be displayed and that will help you troubleshoot the issues.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.