TurnKey Linux Virtual Appliance Library

Duplicator Backup for WordPress

mprice's picture


Those of you using TurnKeyLinux appliances for WordPress, and NOT using TKLBAM, here is a trick/hack to ensure a complete migration.


I just installed 4.1 and it is fantastic!


I use turnkeylinux appliances and there is one problem with the final stage of the duplicator plugin.


At completion, the url is duplicated.  Do not click on the links yet!


Open wp-config.php and remove the actual url and leave it blank.


Here is what duplicator writes:


define('WP_SITEURL', ''.$_SERVER['HTTP_HOST']);

define('WP_HOME', ''.$_SERVER['HTTP_HOST']);


here is what I changed it to:


define('WP_SITEURL', 'http://'.$_SERVER['HTTP_HOST']);

define('WP_HOME', 'http://'.$_SERVER['HTTP_HOST']);


TurnKeyLinux uses the wildcard declaration, so the actual siteurl and home address are not needed.


Now it works like a dream.

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)