Skip to content

Deploy to an empty server

The free Migrator (since 1.12.0) ships a standalone installer. It rebuilds a site from a .migrator backup on a server that has no WordPress yet, or over a site that is already there. It needs neither WordPress nor the plugin on the new server, only PHP 8.1 with mysqli.

  1. On the new server, create an empty database and note its name, user and password. If a WordPress site is already there, the installer can reuse its wp-config.php instead.
  2. On the old site, open Migrator > Deploy. Copy the access key, then click Download installer.php. The key is not stored anywhere else, so a new download comes with a new key.
  3. Download a backup from the Migrator screen, or have a link to one ready.
  4. Upload installer.php, and the backup if you downloaded it, into the folder where the site should live (for most hosts that is public_html).
  5. Open installer.php in your browser, enter the access key and fill in the form.
  • Backup: a .migrator or .migrator.gz file in the same folder, or a link. With a link the new server downloads the backup itself, so a large archive never passes through your computer. A presigned Amazon S3, Cloudflare R2 or Dropbox link works.
  • Database: keep the existing wp-config.php and its database settings when it is readable, or enter host, name, user and password. A wp-config.php it cannot read is replaced, and the old file is kept as wp-config-before-migrator-*.php.
  • Table prefix: leave it as it is, or give the tables a new prefix.
  • New site address: the URL the old addresses and paths are rewritten to.
  • Download WordPress core: on by default when the folder has no WordPress yet.
  • Safe mode: restore with every plugin switched off. The list is kept so they can be switched back on from wp-admin.
  • Administrator: a new password for an existing login, or a new administrator when the login does not exist yet.

The work is split into short steps of about 20 seconds that save their place in a state file. A timeout, a closed tab or a reload resumes where it stopped instead of starting over. Only one browser runs the install at a time; another browser can take over after a minute without activity.

When it finishes, the installer deletes itself, its state files and the backup. If the server does not let it delete a file, it leaves a small must-use plugin that removes the leftovers on the next WordPress request and then itself.

  • The installer cannot restore an encrypted (.enc) archive made with Migrator Pro. Decrypt one first on a site with Migrator Pro (wp migrator-pro decrypt site.migrator.enc site.migrator --password=<password>), then use the decrypted .migrator file.
  • To restore onto a site that already runs Migrator, use Restore in wp-admin or wp migrator import instead.