AI & ML

Moving a Web App to a VPS: A Developer's Pre-Migration Checklist

· 5 min read
Community Article
Community articles are authored by SitePoint Premium contributors. Content is screened before publication, and SitePoint reserves the right to moderate or remove articles that violate our guidelines. Views expressed are those of the authors and do not necessarily reflect those of SitePoint.

Moving a Web App to a VPS: A Developer's Pre-Migration Checklist

Published in
·Updated:

The AI briefing for Developers

Stay up to date with AI tools, model releases, and developer workflows that matter.

Weekly. Free. One click to leave.

Share this article

SitePoint Premium
Stay Relevant and Grow Your Career in Tech
  • Premium Results
  • Publish articles on SitePoint
  • Daily curated jobs
  • Learning Paths
  • Discounts to dev tools
Start Free Trial

7 Day Free Trial. Cancel Anytime.

Shared hosting and platform-as-a-service products are a comfortable place to start, until an app needs a background worker, a specific runtime version, more memory than a plan allows, or simply more predictable performance. At that point, a virtual private server (VPS) is often the next step: an isolated virtual machine with root access and full control over the operating system and software stack.

That control comes with responsibility. A VPS that's undersized, in the wrong location or missing backups can leave you worse off than before. This checklist covers six things to measure and verify before you migrate, with the commands to gather real numbers rather than guesses.

Key takeaways

  • Size the server from measured peak usage, not estimated traffic.

  • Confirm the virtualization type supports your stack, especially if you run Docker.

  • Benchmark disk and network from where your users are, not just from your laptop.

  • On an unmanaged VPS, monitoring, security updates and tested backups are your job.

  • Check upgrade paths before you need them.

1. Measure What Your App Actually Uses

The most common sizing mistake is picking a plan based on how much traffic you expect. Instead, measure what your app consumes today, including at its busiest.

On a Linux server you already run, start with a snapshot:

free -h      # memory, including how much is used for cache

df -h        # disk space per filesystem

vmstat 5 12  # CPU, memory, swap and I/O wait, sampled every 5 seconds for a minute

A one-minute snapshot only tells you about that minute. To capture peaks, record usage over at least a full day that includes your busiest period. The sar tool from the sysstat package does this well:

Record CPU and memory every 5 minutes for 24 hours

sar -u -r 300 288 > usage-$(date +%F).log

When you read the results, look for:

  • CPU: sustained high usage during peaks, not occasional spikes.

  • Memory: how much your app and database actually need once cache is excluded, and whether the server ever swaps. Regular swapping is a sign you need more RAM.

  • I/O wait (wa in vmstat): consistently high values mean processes are waiting on the disk.

  • Disk growth: how fast databases, uploads and logs are growing, so you can size storage for the next year rather than just today.

If you're moving from a platform that doesn't give shell access, use its metrics dashboard and application monitoring instead. Then add headroom: around 30 to 50 per cent above measured peaks is a sensible starting point, rather than doubling everything "just in case".

2. Verify OS and Software Compatibility

A VPS gives you a blank operating system, so check that everything your app depends on is available and supported:

  • Operating system and version: Ubuntu LTS and Debian are common choices for Node.js, Python and PHP apps because of their long support windows. Windows Server is needed for IIS, .NET Framework or other Windows-only software, and usually costs more because of licensing.

  • Runtimes and system libraries: confirm the exact versions you need, including native libraries for image processing, PDF generation or database drivers.

  • Database versions and extensions: for example, PostgreSQL extensions or specific MySQL versions.

  • Root access: most unmanaged VPS plans include it; some managed plans restrict it.

If you deploy with containers, check how the VPS is virtualized. Full virtualization such as KVM gives each server its own kernel, and Docker runs normally. Some container-based VPS platforms share the host's kernel, which can limit or complicate running Docker. Once you have access, you can check:

systemd-detect-virt   # for example: kvm, vmware, lxc or openvz

uname -r              # kernel version

Then install your container runtime following the official Docker Engine installation guide for your distribution, rather than an outdated package from a distribution repository.

Finally, keep development, staging and production as similar as possible: same OS version, same runtime versions, same container images. Most "it worked on my machine" migration problems come from small differences here.

3. Benchmark Storage and Network Performance

Plan specifications only tell part of the story. Two plans that both say "NVMe SSD" can perform very differently depending on how storage is shared and limited on the host.

Disk performance

Databases are especially sensitive to small random reads and writes. You can measure this on a test server with fio:

fio --name=db-test --rw=randrw --rwmixread=70 --bs=4k --size=1G \

    --numjobs=4 --iodepth=32 --ioengine=libaio --direct=1 \

    --runtime=60 --time_based --group_reporting

This runs a mixed workload of 70 per cent reads and 30 per cent writes with 4 KB blocks for 60 seconds. Look at IOPS and, especially, the latency percentiles in the output. Run it more than once, at different times of day, because performance on shared storage can vary.

Network performance

Network latency depends mainly on the distance between the data centre and your users, and on the routes in between. Hosting close to most of your users is usually the single biggest improvement you can make. For example, an app whose users are mostly in North America will generally respond faster from a US data centre than from one in Europe or Asia.

Test from locations that represent your users, not just from your own machine:

ping -c 20 your-test-server.example.com

mtr -rwc 100 your-test-server.example.com   # latency and packet loss at each hop

Many providers publish test IP addresses or files for each data centre, so you can run these checks before you buy. Finally, deploy a copy of your app and run a load test with realistic traffic, since that's the only way to see how CPU, disk and network behave together.

4. Look Beyond the Spec Sheet at the Provider's Infrastructure

A VPS runs on physical hardware in a physical building, so the provider's infrastructure affects both performance and reliability. Before committing, find out:

  • Virtualization and resource allocation: whether CPU and RAM are dedicated or shared, and how heavily hosts are loaded.

  • Hardware: server generation, storage type and whether storage is local or network-attached.

  • Data centre locations: which regions are available, and whether you can move between them later.

  • Redundancy: power (UPS and generators), cooling and network connections from more than one carrier.

  • Ownership: whether the provider runs its own facilities or rents space from third parties. Neither is automatically better, but it affects who you're dealing with when something goes wrong.

  • Support and SLA: response times, hardware replacement policies and what the uptime guarantee actually compensates.

Providers differ a lot in how transparent they are about this. Database Mart, for example, publishes details of the Dallas and Kansas City data centres it operates, including its power redundancy. Wherever you look, favour providers that document their infrastructure clearly over those that only list headline specs.

5. Plan Monitoring, Security and Recovery Before Launch

On an unmanaged VPS, nobody else is watching your server. Set up these basics before you move production traffic.

Secure access from day one

  • Create a non-root user with sudo access and log in with SSH keys.

  • Disable password logins by setting PasswordAuthentication no in your SSH configuration, after confirming key-based login works.

  • Allow only the ports you need. With UFW on Ubuntu:

sudo ufw allow OpenSSH

sudo ufw allow 80,443/tcp

sudo ufw enable

  • Enable automatic security updates, for example with the unattended-upgrades package on Debian and Ubuntu.

Monitor the server and the app

Track CPU, memory, disk space, disk I/O and network usage, with alerts before resources run out. Prometheus with its Node Exporter is a popular open-source option. Add an external uptime check that tests your app from outside the server, so you hear about outages even if the server itself is down.

Keep logs under control

Configure log rotation so application and access logs can't fill the disk, a surprisingly common cause of outages on small servers.

Back up, and test restores

Schedule automatic backups of your database and any uploaded files, and copy them off the server, ideally to a different provider or region. A database backup can be as simple as a nightly dump copied elsewhere:

pg_dump -Fc myapp > /backups/myapp-$(date +%F).dump

Provider snapshots are useful, but they shouldn't be your only backup. Most importantly, practise restoring to a fresh server at regular intervals. A backup you've never restored is an assumption, not a recovery plan. Remember too that an uptime SLA covers the provider's infrastructure, not your application or your data.

6. Check Upgrade Paths Before You Need Them

Applications grow. Before choosing a provider, find out:

  • Whether you can add CPU and RAM without rebuilding the server, and how much downtime a resize involves

  • Whether you can attach more storage separately from compute

  • Which larger plans are available, including dedicated CPU options

  • How easy it is to move to a dedicated server, or to another region, if you outgrow the VPS

  • Whether there's an API or Terraform provider, so your infrastructure can be rebuilt from code

Many apps run comfortably on a VPS for years. Sustained heavy CPU use, large databases with demanding I/O, or strict compliance needs may eventually justify dedicated hardware, but you'll make that decision far more easily if you've been measuring all along.

Final Pre-Migration Checklist

  • Resources: peak CPU, RAM, disk and bandwidth measured over at least a day, plus headroom

  • Compatibility: OS, runtimes, libraries, database versions and container support confirmed

  • Performance: disk I/O and network latency tested from your users' regions

  • Infrastructure: hardware, data centre locations, redundancy and SLA reviewed

  • Operations: SSH hardening, firewall, updates, monitoring, log rotation and off-server backups in place, with a tested restore

  • Scalability: resize options and migration paths understood

Conclusion

Moving to a VPS gives you control over your application's environment, along with responsibility for keeping it running. Choose a configuration based on measured workloads, confirm your stack runs on the provider's virtualization, test performance from where your users are, and have monitoring, security and tested backups in place before you switch traffic. The right VPS isn't the one with the biggest numbers for the lowest price; it's the one that fits your app and your team's ability to run it.

proton_pass_2026_11_footer
Source: SitePoint Team · www.sitepoint.com