WordPress.org

Ready to get started?Download WordPress

Forums

Move an entire Multisite set up from one server to another (5 posts)

  1. tcwaters
    Member
    Posted 9 months ago #

    Is there a way to mover an entire multisite set up from one server to another? I tried to move sites individually, but it breaks the databasse on the new server. I'm not sure why.

    The Iniversity requires us to move our site from our own server to theirs, which is a two step process. first it has to go to their staging set up, and then after it passes a security test, it must go to their prod set up. Both stage and prod are load balanced configs with each having an external DB server.

  2. Are you changing URLs?

    If not, it's 100% exactly the same as moving a single site. Pick up and drop off :)

    If you are chaning the URL, read http://codex.wordpress.org/Moving_WordPress#Moving_WordPress_Multisite

  3. tcwaters
    Member
    Posted 9 months ago #

    Multisite is somewhat more complicated to move, as the database itself has multiple references to the server name as well as the folder locations. If you're simply moving to a new server with the same domain name, you can copy the files and database over, exactly as you would a traditional install.

    If, instead, you are changing domains, then the best way to move Multisite is to move the files, edit the .htaccess and wp-config.php (if the folder name containing Multisite changed), and then manually edit the database. Search for all instances of your domain name, and change them as needed. This step cannot yet be easily automated. It's safe to search/replace any of the wp_x_posts tables, however do not attempt blanket search/replace without the Search and Replace for WordPress Databases script.

    This doesn't sound like it is exactly the same. Although I get one place I did it wrong. I installed a back up plugin, like I would for a single site, INSTEAD of installing for the entire "/" site.

    If you're moving Multisite from one folder to another, you will need to make sure you edit the wp_blogs entries to change the folder name correctly. You should manually review both wp_site and wp_blogs regardless, to ensure all sites were changed correctly.

    Also manually review all the wp_x_options tables and look for 'three fields and edit as needed:

    home
    siteurl
    fileupload_url
    If you are moving from subdomains to subfolders, or vice-versa, remember to adjust the .htaccess file and the value for SUBDOMAIN_INSTALL in your wp-config.php file accordingly.

  4. tcwaters
    Member
    Posted 9 months ago #

    What is the relationship between the web.config file, the webconfig.php file and the database? How do these two files that sit inside of the Multisite directory afftect the site, and what is the interaction between these files and the database?

  5. FYI, it really helps us to read what YOU said if you use quotes around the stuff you're quoting :)

    If you're simply moving to a new server with the same domain name, you can copy the files and database over, exactly as you would a traditional install.

    THAT is 100% exactly the same way you move a single site. That's what I meant.

    So are you changing the domain name?

    What is the relationship between the web.config file, the webconfig.php file and the database?

    web.config is the IIS equivilent of an .htaccess file.

    The Database is where WP stores your data.

    Again, NONE of that is different from normal single site WP.

Reply

You must log in to post.

About this Topic