Skip to content
wp2next, home
Skip to the page

Getting a WordPress site into Local

Your computer

Pick your computer's system. Steps that differ switch to it, and this browser remembers.

For people running migrations (freelancers, agencies, developers). Moving your own site? See the plain-language version.

wp2next reads the old site from a copy running on your own computer in , a free app for running WordPress sites locally. Working from a local copy means wp2next can read the database and theme files directly, take screenshots without touching the live site, and never change the live site by accident.

This page covers installing Local and the four ways to get a site into it, easiest first.

Install Local

  1. Download Local from localwp.com⁠ (external site) (macOS, Windows, Linux). It is free; the download page says it "always will be" (checked 2026-12).
  2. Install and open it. Follow Local's installation guide⁠ (external site) if anything asks for permissions.

By default Local keeps sites in ~/Local Sites (on Windows usually C:\Users\<you>\Local Sites; Not yet confirmed in Local's docs). If you changed that, tell wp2next init (it's saved as paths.localSitesDir).

On Windows, Local needs 64-bit Windows 10 or 11. Allow its Windows Defender Firewall prompts on the first site. Its database listens on a TCP port shown on the site's Database tab rather than a socket, and the port can change after a restart; wp2next reads it fresh each time. Running the in WSL2 while Local runs on Windows needs mirrored networking. Both are covered in Windows.

What access do you have?

You haveUse
A WP Engine or Flywheel account that hosts the siteOption 1: Local Connect
A WordPress admin loginOption 2: a migration plugin
Hosting access (file manager or SFTP, plus phpMyAdmin or a database export) but no admin loginOption 3: copy the files and database by hand
None of these: only the public websiteOption 4: no local copy

If you're doing this for a client, ask them to add you as a WordPress Administrator. It's the simplest route and they can remove you afterwards.

Option 1: Local Connect (WP Engine or Flywheel)

Local is made by WP Engine and can pull sites straight from WP Engine and Flywheel hosting.

  1. In Local, open Connect in the left sidebar and sign in.
    • WP Engine: first turn on API access in the WP Engine User Portal (Users > API Access).
    • Flywheel: sign in and confirm the link.
  2. Find the site and Pull it (Production, or Staging if you prefer).

You can connect one account per host. (Local Connect docs⁠ (external site))

Option 2: a migration plugin

Works with any host.

  1. On the live site, install WP Migrate Lite (free; Local recommends it). Export the site as a .zip, including the database and the wp-content files.
  2. Drag the .zip onto Local's window, or use Local's Import option. (guide⁠ (external site))

Local needs the .zip to contain wp-content/ and a .sql database file.

Other plugins:

  • All-in-One WP Migration exports one .wpress file. Create a blank site in Local, install the plugin there, and import the file. The free version's import is limited by the upload size the server allows. Large sites need the paid extension. (plugin page⁠ (external site), checked 2026-12)
  • Duplicator or UpdraftPlus: create a blank site in Local and restore the plugin's backup into it. Whether Local's own import accepts their archives directly wasn't confirmed.

Option 3: copy the files and database by hand

  1. From the host, download:
    • the wp-content folder (via the file manager or an app)
    • a as a .sql file (via phpMyAdmin's Export tab or your host's backup tool)
  2. In Local, create a new, blank WordPress site.
  3. Replace that site's wp-content folder with the one you downloaded. It's in ~/Local Sites/<site>/app/public/ (Windows: C:\Users\<you>\Local Sites\<site>\app\public\); Local's site-folder link under the site name opens it.
  4. Put the .sql file in the site's folder.
  5. In Local, click Open and run:
Terminal
wp db import yourfile.sql
wp search-replace 'https://www.example.com' 'https://yoursite.local'

Use the live site's exact address, and run the replace again for any other version you find (with or without www, http or https).

(Local's guide⁠ (external site))

Option 4: no local copy (REST API only)

If you can't get files or a database, wp2next can still work from the public site. It reads content through WordPress's built-in (/wp-json/wp/v2/...) and saves each page's finished HTML.

What you lose:

  • Anything not exposed publicly: recipients, draft or private pages, some plugin settings. You'll need to fill these in by hand, so ask the client.
  • The 's own files. The design is copied from the rendered pages instead.
  • A private baseline. Screenshots for comparison are taken from the live site.

Tell wp2next during migrate that there's no Local site. It switches to this mode.

Check the copy before running wp2next

  1. Start the site in Local (the Start site button).
  2. Click Open site. You should see the site at https://<name>.local.
  3. Click around: home page, a few inner pages, a blog post, the contact page.
  4. Note the site's folder name in your Local Sites folder. That is what migrate asks for as the Local site.

Common problems:

  • Browser warns the connection isn't private. Normal. Local uses its own certificate. Click through, or use Local's "Trust" option under the site's setting.
  • Links jump to the live site. The search-replace missed a version of the address. Run wp search-replace again for it.
  • Pages show "Not Found", but the home page works. In WP admin, go to Settings > and click Save without changing anything.
  • Stray or login prompts. A security, caching or maintenance-mode plugin may be interfering. Deactivate it on the local copy only.
  • Windows: https://<name>.local doesn't open. Check the firewall prompts were allowed and the (C:\Windows\System32\drivers\etc\hosts) isn't read-only. Local's own guide notes a non-.local domain can be much faster on Windows (Local on Windows⁠ (external site)).

Keep the site running in Local for the whole migration. wp2next connects to its database, and that connection only exists while the site is started.

Privacy

The local copy holds everything the live site holds: user accounts, form entries, sometimes customer details. Keep it on your own machine, don't .sql files or backups to git, and delete the copy once the project is done and handed over.