How to migrate a multisite

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1254985
    Sven Grossenbacher
    Participant

    Hi,

    I have to migrate a multisite.

    What steps do I have to do?

    I made a backup of the main site but now inside the Dashboard it tells me: The Multisite Language Switcher needs the activation of the multisite-feature for working properly. Please read this post if you don’t know the meaning.

    So what is the correct way to make a migration?

    Thanks

    #1254986
    Sven Grossenbacher
    Participant
    This reply has been marked as moderator-only.
    #1255018
    Bryle Crodua
    Moderator

    Hi,

    Migrating a standalone and Multisite has the same process. You just need to activate Multlsite on your destination site first. Please check this guide – https://updraftplus.com/faqs/how-do-i-migrate-to-a-new-site-location/

    Thanks,
    Bryle

    #1255069
    Sven Grossenbacher
    Participant

    Hi Bryle

    Tanks.

    I migrated the site from a domain to a subdomain. This works fine – however the multi domain is not set up.

    I now activated Multisite by adding to the wp-config.php file:
    define( 'WP_ALLOW_MULTISITE', true );

    Now in Tools I have Network Setup I get the following message:
    Warning: An existing WordPress network was detected.
    Please complete the configuration steps. To create a new network, you will need to empty or remove the network database tables.

    1.) I think I do not have to delete the database tables as I want to set up an existing Multisite not a new one is that right?

    Just below it says:

    Enabling the Network
    Complete the following steps to enable the features for creating a network of sites.

    Add the following to your wp-config.php file in /home/ch24620/web/fosser.mediafish.es/public_html/ above the line reading /* That’s all, stop editing! Happy publishing. */:

    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', false );
    define( 'DOMAIN_CURRENT_SITE', 'fosser.de' ); <strong>#I changed that to: 'fosser.mediafish.es'</strong>
    define( 'PATH_CURRENT_SITE', '/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );

    2.) So that is what I did without deleting database tables. I added that code in the wp-config.php above /* That’s all, stop editing! Happy publishing. */ and below define( ‘WP_ALLOW_MULTISITE’, true );
    ………………….

    Add the following to your .htaccess file in /home/ch24620/web/fosser.mediafish.es/public_html/, replacing other WordPress rules:

    RewriteEngine On
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    3.)In the htaccess file I replaced the old with the new rule below: <IfModule mod_rewrite.c> and above </IfModule>

    4.) Now I go to fosser.mediafish.es/wp-admin and I get the error:
    Error establishing a database connection
    If your site does not display, please contact the owner of this network. If you are the owner of this network please check that MySQL is running properly and all tables are error free.

    Could not find site fosser.mediafish.es. Searched for table wp_blogs in database ch24620_wp924. Is that right?

    What do I do now? Read the Debugging a WordPress Network article. Some of the suggestions there may help you figure out what went wrong. If you’re still stuck with this message, then check that your database contains the following tables:

    wp_users
    wp_usermeta
    wp_blogs
    wp_blogmeta
    wp_signups
    wp_site
    wp_sitemeta
    wp_registration_log

    Can you please assist?

    Thanks

    #1255147
    Bryle Crodua
    Moderator

    Hi,

    “Error establishing a database connection”
    > Please can you check the wp-config.php and see if the database info is correct?

    Can you please send us a copy of the migration log?
    You can find this log in the ‘wp-content/updraft’ directory of your new site location.
    You can send the log file as an attachment or copy the contents into an online tool (such as https://pastebin.com/ )

    Thanks,
    Bryle

    #1255226
    Sven Grossenbacher
    Participant

    Hi,

    Yes database info is correct.

    In the wp-config.php
    When I add: define( ‘WP_ALLOW_MULTISITE’, true );
    All fine

    In the .htaccess file
    When I replace: .htaccess
    All fine

    In the wp-config.php
    I now add: define( ‘MULTISITE’, true );
    It takes me to the old site https://fosser.de

    I now additionally add: define( ‘SUBDOMAIN_INSTALL’, false );
    It takes me to the old site https://fosser.de

    I now additionally add: define( ‘DOMAIN_CURRENT_SITE’, ‘fosser.mediafish.es’ );
    It takes me to the old site https://fosser.de

    I now additionally add: define( ‘PATH_CURRENT_SITE’, ‘/’ );

    Error establishing a database connection
    If your site does not display, please contact the owner of this network. If you are the owner of this network please check that MySQL is running properly and all tables are error free.
    Could not find site fosser.mediafish.es. Searched for table wp_blogs in database ch24620_wp924. Is that right?

    I cannot migrate sending the file to the sub domain I get Error: Unexpected response: Error: cURL error 60: SSL certificate problem: certificate has expired (http_request_failed). You should check that the remote site is online, not firewalled, does not have security modules that may be blocking access, has UpdraftPlus version 2.10.3 or later active and that the keys have been entered correctly.

    I made a backup on the old domain and uploaded it to the new site. Here is the log from the new sub-domain: https://fosser.mediafish.es/log.6e109dad5334.txt

    Hope that helps seems there is old url in new DB… but I don’t know

    Cheers

    Sven

    #1256974
    Sven Grossenbacher
    Participant

    Hi

    Any news?

    I really would like to migrate the multisite but it does not work and I have spent hours trying.

    Cheers for a solution

    :-)

    #1257006
    Sven Grossenbacher
    Participant

    Ok solved.

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘How to migrate a multisite’ is closed to new replies.