How to Move From Shared Hosting to a VPS Safely

A zero-surprise migration checklist for moving a website from shared hosting to a self-managed VPS.
Website migration from shared hosting to a VPS

Fact-checked against current official documentation and provider information. Editorial review is required before publication.

Last updated: September 14, 2026

Moving from shared hosting to a VPS changes more than the server size. Shared hosting hides the operating system, web stack, mail services and patching. On an unmanaged VPS, those become your responsibility.

A safe migration builds the destination in parallel, copies and verifies data, controls the final change window and keeps the old account available for rollback. Do not point DNS at an untested server.

Quick Answer

Inventory the existing site, lower DNS TTL in advance, create independent backups, build and secure the VPS, test the site through a temporary hostname or hosts-file entry, plan email separately, freeze writes, make a final database/file sync, switch DNS, monitor both systems and retain the old host until the rollback window closes.

PhaseMain taskExit condition
DiscoverInventory domains, databases, files, cron, DNS and mailNothing required by the site is unknown
BuildHarden VPS and install compatible stackDestination survives update and reboot
TestRestore copies and test privatelyPages, forms, jobs and admin functions work
Cut overFinal sync and DNS changeNew writes reach the VPS
StabiliseMonitor logs, TLS, mail and resourcesNo unresolved errors; rollback window ends

Inventory the Existing Account

  • Every domain, subdomain and redirect.
  • Document root, file ownership and storage used.
  • Database engine, version, size and credentials.
  • PHP/runtime version, extensions and server rules.
  • Cron jobs, queues, webhooks and background workers.
  • DNS records, nameservers and TTL values.
  • Mailboxes, forwarders, SMTP settings and deliverability records.
  • TLS certificates and renewal process.

Prepare Backups and Rollback

Create a full file and database backup outside the shared account. Export DNS and mail settings. Verify archive checksums and restore the backup into a test directory or database before relying on it.

Keep the old hosting account unchanged through the cutover. Define the rollback trigger and method: restore the previous DNS answer, remove the write freeze and reconcile data created during the attempted cutover.

Build and Secure the VPS

Install a supported operating system and web stack, apply updates, create a non-root administrator, configure SSH keys and firewall rules, and set up monitoring and backups. Match application versions deliberately; a large jump in PHP or database version can turn a hosting migration into an application upgrade.

Configure virtual hosts, TLS, caching, upload limits, scheduled jobs and log rotation. Do not host public mail on the new VPS unless you have planned reputation, reverse DNS, spam filtering and backups.

Test Without Public DNS

Restore the files and database, then map the domain to the VPS in a local hosts file or use a protected staging hostname. Test navigation, logins, checkout, forms, uploads, media, scheduled tasks, outbound email and administration.

Check logs while testing. A page that looks correct can still generate permission warnings, failed cron jobs or mixed-content errors.

Cut Over With a Final Sync

  1. Lower TTL at least one old TTL period before the move.
  2. Announce a short write freeze for stores, forums or membership sites.
  3. Take a final database dump and copy changed files.
  4. Verify counts or checksums at the destination.
  5. Update DNS records or nameservers.
  6. Issue/verify TLS on the public hostname.
  7. Monitor both source and destination logs during propagation.

After the DNS Change

Watch application errors, CPU, memory, disk, database connections and certificate status. Search for hard-coded old paths or IPs. Verify mail authentication records and delivery if the mail system changed.

Do not cancel shared hosting immediately. Wait through the agreed stabilisation period, take a final archive and only then close the old account.

Frequently Asked Questions

Will changing nameservers cause downtime?

It can if the new DNS zone is incomplete or the destination is not ready. Copy every required record first and test the new server before switching.

Should email move to the VPS too?

Not automatically. Keeping mail with a specialised provider often reduces migration risk. If it moves, plan MX, SPF, DKIM, DMARC, reverse DNS, reputation and backups separately.

How long should I keep the old host?

Keep it through DNS propagation and a defined stability window. Dynamic sites also need a plan for writes that reach the old server during transition.

Conclusion

A shared-hosting-to-VPS migration succeeds when discovery and rollback are treated as seriously as copying files. Build in parallel, test privately, sync once more, cut over deliberately and monitor before cancelling anything.

Previous Article

5 Best Atlantic.Net Alternatives in 2026

Next Article

5 Best LightNode Alternatives in 2026

Write a Comment

Leave a Comment

Your email address will not be published. Required fields are marked *

Subscribe to our Newsletter

Subscribe to our email newsletter to get the latest posts delivered right to your email.
Pure inspiration, zero spam ✨