0 votes
Trying to migrate site beta.domain.com from one DO droplet with LTS 16.04 and EE to a new DO droplet with LTS 18.04 and Weby. Using plugin Duplicator for actual migration.

Everything works fine until it's time to leave Duplicator (step 4 I think) and login to the new site for the first time. Then I first get 'too many redirects' and on the second try I get redirected to /wp-admin/install.php like there is no wp-config nor a populated DB.

Cleaned .htaccess and removed things like nginx.conf and the like.

Updated nginx server block to answer on beta.domain.com

Triedd manually Adding WP_SITEURL, WP_HOME and WP_CACHE_KEY_SALT to new wp-config. Tried moving wp-config down inside /htdocs.

Any ideas?
by Expert
Hi Gunnar,

I've never used Duplicator, but I have seen a lot of people having issues with this plugin, eventhough we don't provide plugin support, maybe it's time to give it a try to create a blog post about it.


1 Answer

0 votes
by Expert

Hi Gunnar,

After trying and testing Duplicator Plugin, I found that everything is correct, except that Duplicator doesn't see the wp-config.php that is one level above of the default location, this is a security practice recommended by WP Official Codex. You should suggest to the plugin Team fix this issue.

Steps to migrate a site using Duplicator Plugin:

  • If your wp-config file is one level above, move it to your root folder.
  • From: /var/www/domain.com/wp-config.php
  • To: /var/www/domain.com/htdocs/wp-config.php
  • You can do it from your SFTP Client, or if you prefer Command Line: sudo mv /var/www/domain.com/wp-config.php /var/www/domain.com/htdocs/wp-config.php

Now you can create a new package in Duplicator.

  • Create a new WP site in Webinoly, this will be your destination site. sudo site newsite.com -wp and write down the new DB data (dbname, dbuser, password)
  • Remove the new WP files (duplicator requires an empty folder), you can do it from your SFTP Client or if you prefer Command Line: sudo rm -rf /var/www/domain.com/htdocs/* and then sudo rm /var/www/domain.com/wp-config.php
  • Now you can upload your Duplicator (package) files.
  • Run the Duplicator Installer in your browser and use the DB data you write down before.

After following all the steps above you should see your new site running as expected. Optionally and suggested, you should move again your new wp-config file one level above. sudo mv /var/www/domain.com/htdocs/wp-config.php /var/www/domain.qrokes.com/wp-config.php

Please, tell me if it works for you.

Best regards.

Thanks for a very elaborative answer.

I have not gotten around to deal with this yet but I will let you know once I do.

My impression is that Duplicator is the most popular WP migrating tool among prosumers and WP professionals, that's why I choose this tool over any other.

Welcome to the Community site for Webinoly.

Our Optimized LEMP Web Server is a powerful set of commands for doing just about anything you could wish.

With Webinoly you can set up your NGINX web server in just one step.

* * * * * * *

If you have a question about Webinoly, please ask in English or Spanish.

To report a bug, please ask a question here with the bug tag.


Webinoly Support Paypal Donations Webinoly Support Bitcoin Donations GitHub Sponsors

Your regular donations is what keep this project moving forward. If you like Webinoly, buy me a coffee or a beer to show support.

Affiliate Links

It is very important that any visitor to the site read the disclaimer, terms of use and privacy and legal statement before start browsing.