Shared hosting is great until, one day, it isn't. CPU limits, memory limits, the neighbour problem, no way to install custom software: a site knows when it has outgrown shared hosting. This guide covers when to migrate to a VPS, how to do it without downtime, and the typical mistakes.
When shared hosting is no longer enough #
Technical signs #
- The site slows down at peak times (3-5 in the afternoon, evenings): the neighbours overload the server.
- cPanel shows recurring CPU/IO/EP limit hits.
- 5000+ visits a day for WP, 1000+ for WooCommerce.
- You need software that shared hosting doesn't offer: e.g. a specific PHP extension, custom cron more often than 1/min, Redis, ElasticSearch.
- You need SSH with root access for debugging.
- You need more than one MariaDB instance, or Postgres instead of MySQL.
Business signs #
- The site is your main source of income: downtime means lost money.
- Clients demand SLA guarantees that shared hosting can't give.
- You need PCI compliance for handling cards (shared hosting can't do SAQ-D).
- You have several sites for the same client: a VPS works out cheaper per site.
When shared hosting is NOT a problem yet #
- A WP blog with 1000 visits/day and light caching.
- A brochure site for a small business with little traffic.
- The client isn't yet sure the business will last.
- The team has no sysadmin skills and doesn't want a managed VPS.
Migrating too early = unnecessary cost + sysadmin overhead.
Types of VPS #
Unmanaged VPS #
The provider gives you a bare server. You install the OS, the web server and MariaDB, set up cPanel or configure nginx by hand, and handle security patches and backups: it's all on you.
Price: 5-50 EUR/month.
Best for: technical teams, developers who know Linux.
Managed VPS #
The provider hosts the hardware and maintains the software stack (security patches, backups, monitoring, OS upgrades). You just deploy the site.
Price: 30-200 EUR/month.
Best for: agencies and clients who want performance without the DevOps overhead.
Dedicated server #
A whole physical server just for you. The most resources, the most control.
Price: 100-500+ EUR/month.
Best for: enterprise apps, agencies with 20+ clients on the same server.
Sizing: estimating resources #
| Site type | vCPU | RAM | NVMe | EUR per month |
|---|---|---|---|---|
| WP blog up to 10k visits/day | 2 | 4GB | 40GB | 15-30 |
| Corporate WP + small WooCommerce | 4 | 8GB | 80GB | 30-60 |
| Mid-size WooCommerce (1k orders/month) | 6 | 16GB | 160GB | 60-100 |
| Large WooCommerce + multisite | 8 | 32GB | 320GB | 100-200 |
| Laravel app + Redis + queue | 4 | 8GB | 80GB | 30-60 |
| Multi-tenant SaaS / agency | 16 | 64GB | 500GB+ | 200-400 |
Migration plan: 7 steps without downtime #
Step 1: Audit and sizing (Day -14) #
- List all the sites, databases, email accounts and cron jobs on the shared hosting.
- Check custom PHP config, .htaccess rules and hidden plugins.
- Write down all the DNS records (A, MX, TXT, CNAME).
- Audit Resource Usage in cPanel for the last 30 days: you'll see the peak load.
- Size the VPS at peak × 2, for a buffer.
Step 2: Set up the VPS (Day -10) #
- Provision the VPS, OS and cPanel/WHM (or nginx/Apache directly if it's managed without a panel).
- System patches + security (UFW firewall, fail2ban, SSH keys only).
- A PHP version matching the shared hosting (e.g. PHP 8.2), with the same extensions.
- MariaDB/MySQL installed and optimised (innodb_buffer_pool_size = 50% of RAM).
- SSL Let's Encrypt setup (AutoSSL).
Step 3: Lower the DNS TTL (Day -3) #
The default TTL is usually 3600 (1h) or 86400 (1 day). Lower it to 300 (5 min) a day or two before the migration. Then, when you change the A record, propagation is quick.
Step 4: Migrate the files and database (night of Day -1) #
- Tar and gzip
public_html+ the email accounts on the shared hosting, scp them to the VPS, untar. - mysqldump the databases on the shared hosting, import them on the VPS.
- Update
wp-config.php(DB host, user, pass) or.env(Laravel). - Test the site through the
hostsfile (map the domain to the new IP locally).
Step 5: Final sync (Day 0) #
While DNS is switching over, new orders/posts can land on both the old and the new server. The strategy:
- Read-only mode on the old site for a few hours (a WP plugin for read-only mode).
- A final rsync of the files + a final mysqldump at the moment of the DNS switch.
- Change the A record to the new IP.
- Wait for propagation (with a TTL of 300, about 30 min).
Step 6: Verify + monitor (Day 0+1) #
- Test all the critical flows: login, checkout, contact form, sending email.
- Monitor the server load: htop, MySQL connections, error log.
- Cron jobs enabled on the new server, disabled on the old one.
- Migrate email: IMAP sync or the imapsync tool.
Step 7: Clean-up (Day 7) #
- Set the TTL back to 3600+.
- Cancel the shared hosting (wait 7 days to be safe: you can go back if there's a problem).
- Update your backup strategy for the new server.
- Update monitoring (Uptime, Sentry, Better Stack).
A zero-downtime alternative: the proxy method #
For a critical site (online store, news portal):
- Set up an nginx reverse proxy on the new server that proxies to the old server.
- Point DNS to the new server. All traffic goes through the proxy → the old site.
- Migrate the files + database, test internally.
- When you're ready, switch the proxy config: it now serves locally instead of proxying to the old server.
- Cancel the old hosting.
No DNS downtime window, but a more complicated setup.
Email migration: the hardest part #
Email is usually the biggest migration problem because:
- Users have lots of old email (10+ GB is not unusual).
- IMAP sync is slower than a file rsync.
- An MX change propagates more slowly than web DNS.
Tool: imapsync, a Perl script that syncs between two IMAP servers. imapsync --host1 old.server.com --user1 user --password1 pass --host2 new.server.com --user2 user --password2 pass.
Stages:
- Set up the new email accounts on the VPS.
- Imapsync all the old mail → the new accounts (this can take 6-24h for large accounts).
- Switch the MX record.
- A final imapsync for any mail that arrived between stages 2 and 3.
cPanel-to-cPanel migration (the easiest) #
If you're moving from shared cPanel hosting to a VPS with cPanel, WHM has a built-in transfer tool. The whole account (site + databases + email + DNS + cron) is copied with a single command.
# In WHM on the new server:
Transfers → Copy Account → SSH to the old server
It takes 30 min - 4h, depending on size.
Typical mistakes #
- Forgetting to update
wp-config.phpafter the migration: the site goes down because it tries to connect to the old database. - Old DNS in the theme (a hard-coded
https://example.cominstead of relative URLs). - Wrong file permissions after the migration:
chown -R user:user /home/user/public_html. - SELinux blocks nginx if you use RHEL/Alma: check
setenforce 0or set the contexts properly. - Mail and web on the same IP for a WP site behind Cloudflare: the origin IP leaks through the mail.
- Cron jobs active on both servers at once → emails sent twice, customers charged twice.
WPS or your own server at WMD #
We don't sell VPSs, so anyone who needs more than a regular hosting plan takes WPS, which runs on servers with fewer users. For a whole server, we have dedicated servers, which we maintain ourselves, and we move your site for free and without downtime.
FAQ #
How long does a migration take? A small site (WP blog) 2-4h. Mid-size (WooCommerce, 5k orders) 8-12h. Large with email 24-48h, but with zero downtime.
Can I migrate on my own if I have no sysadmin experience? Technically yes, through Softaculous Backup + Restore, but the risk is high. A managed migration from a hosting provider typically costs 100-300 EUR as a one-off.
What if something breaks during the migration? Have a backup of the old site. Don't delete the old hosting straight away: keep it running in parallel for 7-14 days so you can roll back.
SEO impact? None if the site stays on the same domain, with the same URL structure and the same content. Google sees no difference.
Do I need a new SSL certificate? Yes, a new one is issued for the new server (Let's Encrypt, automatically). The old SSL on the old server doesn't matter after the migration.
Thinking of moving to your own server? Get in touch through the contact form.