---
title: How to Move From Shared Hosting to a VPS
description: "Move a cPanel account from shared hosting to a VPS: lower DNS TTL, take a full backup, restore it, test with a hosts file, then switch DNS safely."
url: "https://hostingguider.com/guides/move-from-shared-hosting-to-vps/"
canonical_url: "https://hostingguider.com/guides/move-from-shared-hosting-to-vps/"
date: "2026-11-07T01:05:00+00:00"
modified: "2026-10-20T09:39:00+00:00"
author: Rantideb Howlader
type: article
site: HostingGuider
language: en-US
---

# How to Move From Shared Hosting to a VPS

To move from shared hosting to a VPS, lower your DNS TTL, take a full cPanel backup, and restore it on the new server.

Then test the site privately before you switch DNS.

Keep the old account running until DNS has settled and no new email arrives there. Cancel it last.

You can do this yourself, or let a managed VPS host move the account for you. Either way, you keep control of DNS and testing.

Migration is one step in the wider [VPS hosting topic guides](https://hostingguider.com/topics/vps-hosting/); the steps here assume an existing cPanel account, not a server built from scratch.

Table of Contents

## Before you start: what you need

You need a working copy of everything on the old account and admin access to the new server.

**Gather these first:**

- **Log in to your current cPanel**, so you can create a full backup.
- **Access to your domain’s DNS** at your registrar or DNS provider.
- **A list of every domain, subdomain, and mailbox** on the account.
- **The new VPS**, with root access or a host who will do the restore for you.
- **A quiet time window**, ideally when your traffic and email volume are lowest.

If VPS hosting is new to you, the [VPS hosting basics for beginners](https://hostingguider.com/blog/what-is-vps-hosting/) explain what changes when you leave shared hosting.

**For your site, this means:** if you can’t log in to DNS today, fix that first. Every later step depends on it.

## Two paths: host-run migration or do it yourself

Many managed VPS hosts will move a cPanel account for free, while an unmanaged VPS means you do every step yourself.

Here is what four hosts state on their own pages, checked between September 25 and October 5, 2026:

| **Host** | **What its official page says about migration** |
| --- | --- |
| ScalaHosting (cPanel VPS) | Free cPanel migration “handled by experts”, with what it calls “zero-downtime migration at your preferred time” |
| InMotion Hosting (managed VPS) | “Free Website Transfers and Server Setup” on managed VPS plans with cPanel or Control Web Panel; not on self-managed Cloud VPS |
| Liquid Web (managed VPS) | Lists migration of content, email, databases and control panel accounts |
| Hostinger (VPS) | “VPS hosting plan is not available for free website migration”; its VPS migration guide is self-service |

*Sources: [ScalaHosting’s cPanel VPS page](https://www.scalahosting.com/cpanel-vps-hosting.html?utm_source=hostingguider.com), [InMotion’s VPS page](https://www.inmotionhosting.com/vps-hosting?utm_source=hostingguider.com), [Liquid Web’s managed VPS page](https://www.liquidweb.com/vps-hosting/managed-vps/?utm_source=hostingguider.com), and [Hostinger’s migration help article](https://www.hostinger.com/support/4455931-how-to-migrate-a-website-to-hostinger/?utm_source=hostingguider.com).*

Hostinger’s [VPS migration article](https://www.hostinger.com/support/2774885-how-to-migrate-your-vps-to-hostinger/?utm_source=hostingguider.com) says “you must manually transfer your files and databases” and lists root access on both servers as a requirement.

**For your site, this means:** even with a free move, do Steps 2, 8, and 10 yourself. You own the DNS, the testing, and the timing.

If you use the [ScalaHosting cPanel VPS](https://hostingguider.com/recommend/scalahosting) or an [InMotion managed VPS](https://hostingguider.com/recommend/inmotion-hosting), ask support to confirm the migration date in writing.

## Step 1: Choose a managed cPanel VPS or an unmanaged VPS

Pick a managed VPS with cPanel if you want the same panel and someone else patching the server; pick unmanaged only if you can run Linux yourself.

A managed cPanel VPS keeps your workflow almost unchanged. You still get cPanel for email, files, and SSL, and the host handles updates.

An unmanaged VPS gives you a blank server. You install the web stack, mail and security yourself. The trade-offs are covered in [deciding who runs the server](https://hostingguider.com/guides/managed-vs-unmanaged-vps/).

Licence cost matters here. [cPanel’s pricing page](https://cpanel.net/pricing/?utm_source=hostingguider.com) lists $29.99 a month for one account and $35.99 for up to five, on monthly billing (checked October 4, 2026).

Some managed hosts include the licence, and some charge for it. If you might switch panels, get cPanel, Plesk, and hPanel compared on price and features before you order.

## Step 2: Lower your DNS TTL a day ahead

Lower the TTL on your domain’s records at least one full old-TTL period before the move, so the final switch spreads in minutes instead of hours.

TTL (time to live) is a number on each DNS record. [Cloudflare’s TTL documentation](https://developers.cloudflare.com/dns/manage-dns-records/reference/ttl/?utm_source=hostingguider.com) says it “controls how long each record is cached”.

**How to do it:**

- Open the DNS zone for your domain.
- Note the current TTL on the A, AAAA, MX, and www records.
- Change each to 300 seconds (5 minutes).
- Wait at least as long as the old TTL before Step 9.

**Why it matters:** with a 4-hour TTL, some networks keep the old address for up to 4 hours after you switch. A short TTL shrinks that window.

**Risk:** a lowered TTL only affects records in your current zone. If you also change nameservers, those cache times are outside your control.

Background on this is in [how DNS changes spread](https://hostingguider.com/blog/what-is-dns-propagation/).

## Step 3: Take a full cPanel backup

A full cPanel backup packs your files, databases, email, and account settings into one archive that a cPanel server can restore.

HostGator’s [full backup help article](https://www.hostgator.com/help/article/how-to-generatedownload-a-full-backup?utm_source=hostingguider.com) describes the path: **cPanel, Files, Backup, Download a Full Account Backup**. It says the archive includes “all of your files, email, databases, etc.”

The same article lists valid file names, such as cpmove-{USER}.tar.gz and backup-{date}_{USER}.tar.gz.

It also notes that restoring a full backup yourself needs WHM root access, which you get on a VPS or dedicated server.

**Why it matters:** this archive is your safety net. Even if a host migrates for you, keep your own copy off both servers.

**Risk:** large accounts can take a long time to package. Delete old backups and unused files first so the archive stays small.

## Step 4: Move the account to the VPS

You can restore the backup file, copy the account with WHM tools, or, on a VPS without cPanel, rebuild the site by hand.

### Option A: Restore the full backup file

Upload the archive to the VPS, then restore it as root. InMotion’s [restore guide](https://www.inmotionhosting.com/support/edu/cpanel/how-to-restore-a-cpanel-backup-via-ssh/?utm_source=hostingguider.com) shows the command:

/scripts/restorepkg /path/to/backup/file.tar.gz

WHM also has a graphical restore screen for the same archive format.

### Option B: copy the account with WHM

WHM’s Transfer Tool pulls accounts from another cPanel server. [Vultr’s Transfer Tool guide](https://docs.vultr.com/how-to-use-cpanel-s-transfer-tool-to-migrate-accounts?utm_source=hostingguider.com) says it moves “Files, databases, email accounts, and configurations”.

The catch: it asks for the source server’s root password, which shared hosting customers don’t have. [Namecheap’s transfer article](https://www.namecheap.com/support/knowledgebase/article.aspx/10287/30/how-to-transfer-accounts-between-cpanel-server/?utm_source=hostingguider.com) shows the same root login step.

WHM has a second tool for this case: “Copy an Account From Another Server With an Account Password”.

HostArmada’s [tutorial on that tool](https://hostarmada.com/tutorials/getting-started/whm/how-to-use-the-copy-an-account-from-another-server-with-an-account-password-feature-in-whm/?utm_source=hostingguider.com) says it uses your cPanel username and password instead of root.

The same tutorial calls the tool “situational” and warns it needs compatible WHM versions on both servers. If it fails, fall back to Option A.

### Option C: an unmanaged VPS without cPanel

Without cPanel there is no one-click restore. You build the web stack first, then copy files, import databases and recreate mailboxes by hand.

Server setup is covered in the [first VPS setup tutorial](https://hostingguider.com/guides/setup-vps-hosting-tutorial/). Hardening and monitoring are in the [production checklist for an unmanaged VPS](https://hostingguider.com/guides/unmanaged-vps-first-30-steps/).

**For your site, this means:** if you plan to stay on cPanel, the backup-and-restore route is the most predictable for most shared hosting customers.

## Step 5: Check email accounts and MX records

Email is the part most likely to go wrong, so confirm every mailbox exists on the VPS before you touch the MX record.

The MX record tells other mail servers where to deliver email for your domain. When it changes, new mail starts arriving at the VPS.

If you’re unsure what A and MX records do, open your DNS zone now.

The A record points visitors to the web server, and the MX record points mail to the mail server.

**Check these on the new server:**

- Every mailbox from your list exists and accepts a test login.
- Forwarders, filters, and autoresponders came across.
- Old messages are present, if they were in the backup.

**Why it matters:** if the MX record points to the VPS before a mailbox exists, mail for that address can bounce.

**Risk:** if your email lives with a separate provider, such as Google Workspace or Microsoft 365, leave its MX records alone. Only the website records move.

## Step 6: Check databases and site settings

A restored cPanel account brings its databases and database users, but check that each site still connects and runs on the new PHP version.

InMotion’s [Transfer Tool article](https://www.inmotionhosting.com/support/edu/cpanel/cpanel-transfer-tool-whm/?utm_source=hostingguider.com) warns that you may still need to “re-configure configuration files, clear cache, reset permalinks, set DNS settings, re-point name servers”.

**Work through this list:**

- Set each site’s PHP version to match the old host.
- Open each site’s config file and confirm the database name, user, and host.
- Search configs and code for the old server’s IP address.

**Why it matters:** a different PHP or database version can break older code. You want to find that before visitors do.

## Step 7: Reissue SSL certificates

Plan for new SSL certificates on the VPS, because the free automatic kind can only be issued once the domain points at the new server.

[Let’s Encrypt’s challenge types page](https://letsencrypt.org/docs/challenge-types/?utm_source=hostingguider.com) explains that the common HTTP-01 check reads a file at http://<YOUR_DOMAIN>/.well-known/acme-challenge/<TOKEN> on port 80.

That check reaches whichever server your DNS points to. Until Step 9, that is still the old host.

**Your options:**

- **Wait and issue right after the DNS switch.** Expect a short gap where HTTPS shows a warning.
- **Use DNS validation.** The same page says the DNS-01 check works even for servers not exposed to the public internet, so you can issue before switching.
- **Copy a paid certificate.** Export the certificate and private key from the old cPanel and install them on the VPS.

The basics are in [how SSL certificates protect visitors](https://hostingguider.com/blog/ssl-certificate/).

## Step 8: Test the new server before switching

Test the site on the VPS through your computer’s hosts file, so you see the new server while everyone else still sees the old one.

The hosts file maps a domain to an IP address on your device only. It is at C:\Windows\System32\drivers\etc\hosts on Windows and /etc/hosts on macOS and Linux.

- Add a line with the VPS IP and your domain, such as 203.0.113.10 example.com www.example.com.
- Clear your browser cache, or use a private window.
- Click through key pages, forms, logins, and checkout.
- Remove the line when you finish.

Some hosts also give a temporary URL for previews, which works as a second check.

**Why it matters:** this is your last chance to catch broken pages with no visitors affected.

## Step 9: Switch DNS to the VPS

Point your domain’s A record (and AAAA, if you use IPv6) at the VPS IP, then move the MX record once mail is ready.

Changing records in your current DNS zone, rather than changing nameservers, keeps the TTL you lowered in Step 2 in effect. That is our preference for a first move.

**After the change:**

- Check the site from a phone on mobile data, which uses different DNS.
- Issue SSL certificates now if you waited (Step 7).
- Raise the TTL again after a day or two.

## Step 10: Keep the old account until DNS and email settle

Keep the old hosting active for several days after the switch, because some networks and mail servers may still use the old address.

**During this time:**

- Log in to the old webmail and check for new messages that arrived late.
- Do not edit content on the old server, or you will have two versions.

**Risk:** form entries or orders placed on the old server during this window stay there. Check its database before you close the account.

## Step 11: Cancel the old host

Cancel the old account only after the site runs on the VPS, the old mailbox has gone quiet, and your backup is stored safely.

If your old host is also your domain registrar, move or protect the domain first.

Refund windows and notice periods are part of leaving your old host safely, so read its cancellation terms before you click cancel.

## When a different migration path fits better

A WordPress-only move to a managed cloud platform, or a host choice that is still open, needs a different starting point than a cPanel-to-VPS move.

For that WordPress case, follow the [zero-downtime WordPress move to cloud](https://hostingguider.com/guides/migrate-wordpress-cloud-hosting-no-downtime/).

If you’re still choosing a server, the [VPS hosts ranked by use case](https://hostingguider.com/best/best-vps-hosting/) show which plans include cPanel and managed support.

The [ScalaHosting managed VPS review](https://hostingguider.com/reviews/scalahosting/) covers one host that offers free cPanel moves.

## Frequently asked questions

### Can I upgrade from shared hosting to a VPS without downtime?

Yes, in most cases. Lower your TTL first, test through a hosts file, and keep the old account running while DNS updates.

Visitors then reach a working copy on either server.

### How long does a shared hosting to VPS migration take?

In our view, plan for two to three days end to end. The copy may take minutes or hours, but the TTL wait and the overlap period take longer.

### Will I lose my emails when I move to a VPS?

Not if the mailboxes are in your full backup and you check the old webmail for a few days after switching.

Only change the MX record once every mailbox exists on the VPS.

### Do I need to change nameservers when moving to a VPS?

No. You can keep your current DNS provider and only change the A and MX records. That keeps the lowered TTL in effect and is easier to undo.

### Does my SSL certificate move with my site?

Free automatic certificates are usually reissued on the new server once the domain points there. A paid certificate can be exported from the old cPanel and installed on the VPS.

## How we researched this

Each step follows official documentation. On October 5, 2026, we read cPanel and WHM transfer help pages from Vultr, Namecheap, InMotion, HostGator, and HostArmada.

We also read Cloudflare’s TTL docs and Let’s Encrypt’s validation docs that day.

Migration offers come from ScalaHosting, InMotion, and Hostinger pages read on October 5, 2026, and Liquid Web’s managed VPS page, checked in September 2026.

cPanel licence prices were read on October 4, 2026.

The steps come from official documentation, not a migration we ran ourselves, since we don’t own a test VPS yet. Our sourcing follows the [rules for checking provider claims](https://hostingguider.com/methodology/).