---
title: Move WordPress from XAMPP or MAMP to a live server
url: https://wp2wp.link/guides/xampp-mamp-wordpress-to-live
language: en
updated: 2026-11-23
publisher: wp2wp.link
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language questions, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://wp2wp.link/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://wp2wp.link/agents"
---

# Move WordPress from XAMPP, MAMP or Laragon to a live server

Copy the site folder and the database to your hosting, then replace `localhost` with your domain. The easiest way is wp2wp.link: it copies the site straight from your computer.

By [wp2wp.link](https://wp2wp.link/guides/about) · Updated 23 November 2026 · 4 min read

- Result: Your site runs at your domain
- Your time: About 15 minutes
- Cost: Free, up to 50 GB per move
- Your local site: Stays as it is

## Which way fits you?

- Straight from your computer: No phpMyAdmin import, only one small file to upload. Guided step by step.
- By hand: phpMyAdmin, FTP, then replace the address. Large databases often fail to import.

## Before you start

- XAMPP, MAMP or Laragon is running, with Apache and MySQL started.
- You can log in to your local site as admin.
- Your hosting has PHP 7.4 or newer and a MySQL or MariaDB database.
- You can upload files there, with FTP or the file manager.

## Where your site lives

| Tool | Site folder | Usual address |
|---|---|---|
| XAMPP (Windows) | `C:\xampp\htdocs\yoursite` | `http://localhost/yoursite` |
| MAMP (macOS) | `/Applications/MAMP/htdocs/yoursite` | `http://localhost:8888/yoursite` |
| Laragon (Windows) | `C:\laragon\www\yoursite` | `http://yoursite.test` |

The database is in the local MySQL or MariaDB server. You open it with phpMyAdmin (XAMPP, MAMP) or HeidiSQL (Laragon).

## Straight from your computer

wp2wp.link guides you through it with [Reprint](https://wordpress.org/plugins/reprint/), the free copy plugin from WordPress.org.

Your data: your site passes through our server while it is copied. We don’t store it, but we could read it. Move sites with confidential data by hand instead. [Details](https://wp2wp.link/#data)

1. On your local site, install Reprint and the connector plugin.Reprint is under **Plugins → Add New Plugin**. The connector is a .zip file from the guide on wp2wp.link.
2. Under **Tools → Reprint Relay**, tick the box and click **Connect**.A code appears. Type it into the guide on wp2wp.link.
3. At your hosting, create an empty MySQL database.Note its name, user, password and host.
4. Upload the helper file `reprint-web.php` to your domain’s folder and open it.The guide gives you the file and its password. Your domain doesn’t lead there yet? [Use a temporary address](https://wp2wp.link/guides/preview-website-before-dns-change).
5. In the helper, tick the box and click **Get migration token**.Check that both screens show the same characters, then click **Approve** on your local site.
6. In the helper, enter the database details and click **Start migration**.Keep your computer on and XAMPP, MAMP or Laragon running until it is done. Links and images then point to your domain instead of `localhost`.
7. Clean up: delete `reprint-web.php` and the `reprint-data` folder, then click **Disconnect**.

## By hand

This works with any host and no extra plugin. But you must get every step right yourself.

1. In phpMyAdmin, select your site’s database and click **Export**.You get an .sql file.
2. At your hosting, create an empty database and a user.Note the name, user, password and database host.
3. Import the .sql file there.Large files often stop at the host’s upload or time limit. Split them, or ask your host to import them.
4. Upload the site folder’s contents into the domain’s folder with FTP.The folder is usually `public_html`, `httpdocs` or `www`.
5. At your hosting, enter the new database details in `wp-config.php`.Name, user, password and host.
6. Replace `http://localhost/yoursite` with `https://your-domain.com` in the database.Use `wp search-replace` or Better Search Replace. Never replace it as plain text in the .sql file: [why](https://wp2wp.link/guides/fix-localhost-urls-after-migration).

## How you know it worked

- Your domain opens the site with all pages and images.
- You can log in at `/wp-admin` with your usual login.
- No link or image points to `localhost` or `yoursite.test` any more.

## If something goes wrong

### The domain shows the XAMPP or MAMP page

The files went into the wrong folder, or an old `index.html` is still in the domain’s folder. Ask your host which folder belongs to your domain.

### The phpMyAdmin import fails because the file is too large

The host’s upload limit is too small for the file. Compress it, split it or ask your host to import it. Or copy the site straight from your computer, which needs no import.

### Links still contain the sub-folder

Your site was at `localhost/yoursite` and is now at the domain itself. Replace the whole old address, including the folder: [how](https://wp2wp.link/guides/fix-localhost-urls-after-migration).

## Questions

### Do I need to upload WordPress core files?

By hand, you can install a fresh WordPress there and upload only wp-content. A copy straight from your computer brings everything.

### Can I do it without FTP?

Yes, if your hosting panel has a file manager. A copy straight from your computer needs only one uploaded file.

### Is my local site changed?

No. Reprint only reads your content and files. Approving adds your hosting’s key, and the connector stores a few settings. Deleting the connector removes both.

wp2wp.link walks you through the copy from XAMPP, MAMP or Laragon, step by step.

[Start your move](https://wp2wp.link/#migrate)Free · No account

### Sources, checked 18 November 2026

[Reprint on WordPress.org](https://wordpress.org/plugins/reprint/), [Reprint limitations](https://github.com/WordPress/reprint/blob/trunk/docs/handbook/limitations.md), [wp search-replace](https://developer.wordpress.org/cli/commands/search-replace/).

## Related guides

- [Move a local WordPress site to a live server](https://wp2wp.link/guides/local-wordpress-to-live-server)
- [Docker, DDEV and Lando to hosting](https://wp2wp.link/guides/docker-wordpress-to-hosting)
- [All-in-One WP Migration import limit](https://wp2wp.link/guides/all-in-one-wp-migration-import-limit)
