Moving WordPress Between VPS Servers
A WordPress website migration is a transfer of responsibility for live data, not just a copy of files. Build and test the destination before directing visitors to it; then establish which server is allowed to accept writes at each stage. This distinction is especially important for shops, bookings, memberships and sites with form submissions.

Inventory the site and define the cutover
Record the public hostnames, authoritative DNS provider, existing A and AAAA records, CDN or reverse proxy, certificate termination and the current origin addresses. Inventory the WordPress version, PHP and extensions, database version, web-server rules, scheduled jobs, persistent object cache, uploads and externally stored media. Include custom code, must-use plugins and configuration outside the document root. Identify mail delivery, payment providers, webhooks and allowlists that refer to the old server.
Assign one person to authorize the cutover and another to check the customer-facing result. Agree in advance on a maintenance window, communication channels, acceptance checks and the decision point for rollback. Identify every writer: visitors, administrators, scheduled tasks, API integrations, payment callbacks and external systems. A maintenance page alone may not block all of them.
Determine the recovery point and maximum tolerable interruption with the site owner. If business operations cannot pause and reconciliation cannot be guaranteed, a more sophisticated replication or application-specific migration is needed. Do not promise zero downtime merely because DNS has a short TTL.
| Stage | Authoritative data | Required decision |
|---|---|---|
| Rehearsal | Old production server | Keep destination isolated from production side effects |
| Final sync | Old server, writes frozen | Verify no background or external writer remains |
| Cutover | New server after acceptance | Prevent old-server writes during DNS overlap |
| Rollback | Depends on new writes | Reconcile or restore only with explicit data-loss decision |
Prepare a recoverable destination
The WordPress backup handbook distinguishes the database from site files: both are needed for a typical restore. Take a protected backup of each plus relevant server configuration and secrets, retain an independent copy, and practise restoring it to the new server. Record the backup time and verify that the chosen backup contains uploads and custom code, not just a database export.
Provision compatible software and a separate database and account. Recreate HTTPS, routing, rewrite rules, scheduled tasks and file ownership appropriate to the destination. Configure credentials through a secure channel; do not publish dumps or configuration files under the web root. Limit access to the preview and prevent search indexing. A preview is not a disaster recovery test unless you can actually restore and use the application.
The WordPress migration documentation explains the difference between keeping the same domain and changing it. If the public URL is unchanged, avoid unnecessary replacements. If it changes, use a migration tool that understands serialized data, test on a copy, and check hard-coded links, redirects and multisite mappings. Blind database-wide text replacement can corrupt serialized values.
Ensure the test copy cannot send real customer email, process payments, fire live webhooks or execute production jobs. Prefer sandbox credentials and controlled test addresses; coordinate with integration owners before disabling or redirecting a webhook. A cloned database may contain personal information, so restrict access and handle it under your retention and privacy policies.
Plan DNS before moving traffic
Read the actual TTL for every record that will change, including IPv6 and relevant aliases. Lower an editable TTL ahead of time and wait at least the previous TTL before changing its answer; resolvers may have cached the old value before the reduction. DNS caching and client behavior mean that a lower value is not a hard deadline. AWS DNS guidance explains the trade-off between faster changes and more frequent queries.
Documented DNS record default TTL settings
Cloudflare Auto and Akamai DNS Manager Default for address records
- Cloudflare Auto300
- Akamai DNS Manager Default (A/AAAA)86,400
View chart data
| Item | seconds | Note |
|---|---|---|
| Cloudflare Auto | 300 | |
| Akamai DNS Manager Default (A/AAAA) | 86,400 |
These are documented provider-managed settings, not a statement about your actual zone. Cloudflare sets Auto to 300 seconds: proxied records use Auto and cannot have their TTL edited, while DNS-only records may use Auto or a configurable TTL. Akamai Cloud DNS Manager states that selecting Default for A and AAAA records sets the TTL to 24 hours. Check the record rather than assuming either setting applies.
The examples are deliberately limited to providers whose documentation specifies the setting. The cited Google Cloud DNS instructions ask the operator to enter a TTL, while the Route 53 guidance recommends values without establishing a universal console default. Do not mistake an example value for a default. Proxy origin changes and public DNS changes are different operations: check the provider's configuration rather than assuming the visitor sees the origin address.
DNS is not the only cache. A CDN can keep pages or assets, and browsers can retain connections. Plan invalidation where needed without purging unrelated applications. Confirm that the new origin has a certificate valid for the real hostname and that the proxy trusts it; a bare IP test cannot establish that the complete TLS path is correct.
Rehearse the real visitor journey
Preview with controlled name resolution on an operator's machine, or another access method approved by your hosting provider. The preview must use the intended hostname and HTTPS while directing that operator to the destination. Remove any temporary local override afterwards. Test from outside the server as well as from inside it; firewall, CDN and resolver behavior can differ.
Check the homepage and an uncached dynamic page, login and logout, administrator access, media uploads and downloads, redirects, permalinks and mobile layouts. Exercise a test order or booking using the payment provider's sandbox, verify confirmation delivery to a controlled inbox, and follow the resulting record through the dashboard. Examine logs without exposing customer data. Test forms, search, API requests, background work and integrations that matter to this site.
Verify that the destination is not secretly reading the old database or writing uploads to an old mount. Check that backups can run independently and that a restore can recover the destination. Confirm permissions by testing the actual upload and deployment workflows rather than recursively changing an entire tree. Record deviations and repeat the rehearsal after fixing them.
Prepare an acceptance sheet with each important journey, its expected result, who will perform it and where the evidence will be recorded. Include a test for a recent uploaded image and a recent database record so that a visually correct but stale clone is not accepted. Agree which failures require a halt and which can be addressed after cutover. The business owner should validate transaction outcomes, not just the appearance of a page.
Freeze, synchronize and switch
At the agreed window, stop or queue all identified writes at the appropriate edge and application boundaries. Pause editors, background workers and scheduled tasks; arrange for payment and webhook senders to queue or retry where they support it. Confirm the old server is no longer accepting writes, including through its direct origin. Keep a record of anything that cannot be paused and the owner responsible for reconciling it.
Take the final database export and final file synchronization while the freeze is effective. Restore into the designated destination database and confirm the correct database, file paths and credentials before proceeding. Importing into a database replaces or modifies data and is destructive: do not run it against the wrong target or overwrite destination transactions. Verify the final restore and a sample of recent records against the source. Keep the final source backup protected and available.
Switch the approved DNS records or proxy origin, then check the authoritative answers and independent external resolution. Route any remaining old-origin requests to a safe maintenance response or a carefully configured forwarding path that does not accept writes. Do not serve independent writable copies while caches expire. Once checks pass, enable destination writes and then restore jobs and integrations in a controlled order. Check queues and delivery logs for missed or duplicated work.
Accept the result and protect rollback
Confirm certificate validity, dynamic pages, login, test transactions, uploads, mail and scheduled work after the switch. Compare recent order identifiers and payment-provider events with application records, and review errors from both servers. Monitor from outside the network and ask a business owner to verify the flows that matter. Keep the old server and its recovery point protected until the owner accepts the move and the agreed retention period has elapsed.
Before any destination writes, rollback can generally mean returning traffic to the old authoritative site after verifying its state. After destination writes begin, the old database is stale: changing DNS back can lose orders or split the record of transactions. First stop new writes, capture the destination, assess its unique changes and reconcile them to the old system using a tested, application-specific procedure. If that cannot be done safely, explicitly agree on recovery from backup and its data-loss consequences.
Finish by removing preview access and local overrides, rotating any temporary credentials, restoring an appropriate TTL and documenting ownership of the new service. Review the WordPress update planning guide for subsequent changes. Sora Panel is not released yet; read how it works.
Frequently asked questions
Does lowering DNS TTL prevent downtime?
No. It can shorten normal cache lifetime, but clients and proxies may still reach the old server and the application must remain consistent.
Can both servers accept orders during the move?
Not safely without a deliberately designed shared-data or reconciliation strategy. Prevent independent writes during the transition.
Can I roll back by changing DNS?
Only after assessing writes accepted on the destination. A DNS reversal alone does not transfer those changes back.
Should I replace the domain in the database?
Not when it stays the same. When it changes, use a tested tool that handles serialized data and multisite details.
Sources
- WordPress migration handbook (viewed 2026-11-29)
- WordPress backups (viewed 2026-11-29)
- Cloudflare DNS TTL (viewed 2026-11-29)
- Akamai Cloud A and AAAA records (viewed 2026-11-29)
- AWS Route 53 DNS best practices (viewed 2026-11-29)
- Google Cloud DNS record creation (viewed 2026-11-29)
Sora Panel is not released yet. Read how it works on the homepage.