VPS or shared hosting? How to decide, and how to tell when to move

Choose shared hosting when you have an ordinary website and do not want to maintain a server. Choose a VPS when you need your own software, background processes or resources of your own, and somebody can look after Linux. Price alone is a poor reason to pick either.

Updated: · Prices in the text are with the public IP (₼10 a month) unless stated otherwise.

Decision table

Your situationShared hostingVPS
Company site, portfolio, blog with modest trafficGoodMore than needed
WordPress with a handful of pluginsGoodPossible
Shop whose checkout slows down at peak hoursRiskyGood
Node.js, Python, Go, Docker, WebSocketOften impossible or limitedGood
Bot, queue worker, process that runs all dayNoGood
Own database settings, extensions, RedisRarelyGood
Ten client sites that must be separatedDepends on the planGood
Nobody who can use a terminalGoodNot without help
Mailboxes for a few peopleUsually includedUse a separate mail service

If all your rows point to the left column, stop reading and take shared hosting. You will spend less money and far less time.

What is actually shared

On shared hosting, many customers use one operating system, one web server and often one database server. The host sets limits per account: processor share, memory, number of processes, number of files (inodes), mail per hour. You work through a panel, and the host installs updates, renews certificates and usually makes backups.

A VPS gives you your own operating system with fixed vCPU, RAM and disk. You can install anything the system can run, restart it, open ports and read the system logs. In exchange, every item the host used to do is now yours. The task list is on the page about managed and self-managed servers.

So the difference is not "slow against fast". A well-run shared server with a page cache will beat a neglected 1 GB VPS. The difference is control and responsibility.

Check whether you have outgrown your hosting

Do this before spending anything. Run it from your own computer against your current site:

for i in 1 2 3 4 5 6 7 8 9 10; do
  curl -o /dev/null -s -w '%{http_code}  first byte: %{time_starttransfer}s  total: %{time_total}s\n' https://example.com/
done

Repeat it at a quiet hour and at your busiest hour, once for a static file (an image) and once for a page built by PHP.

  • Image fast, page slow, at all hours: the code or the database is slow. A VPS may hide it, but fixing a plugin or adding a page cache is cheaper.
  • Fast at night, slow at noon: you or your neighbours reach the limits. A move makes sense.
  • Codes 503 or 508: the account hit a resource limit. Check the resource page in the panel for the exact one.
  • Everything slow, the image too: distance or network. Look at where the server stands before changing its type.

Other honest reasons to move: the host does not offer the PHP extension or runtime you need, you cannot run a background job longer than a minute, or your account is blocked because a neighbour on the same address sends spam.

When cheap shared hosting is enough

It is enough when all of these are true: the site is mostly read, it runs on PHP and MySQL, a page cache handles most visits, one hour of downtime is annoying but not expensive, and you want somebody else to patch the server. That describes the majority of small business sites. Paying for a VPS there buys you chores.

Three questions separate a decent cheap host from a bad one. What does renewal cost after the first term? Are backups made, and can you restore one yourself? Are the account limits written down?

What each one costs, including time

For shared hosting you pay a small fee and almost no hours. For a VPS the fee is visible, the hours are not:

ItemShared hostingVPS
Monthly feeLow, often an introductory priceFixed; see the plans below
Public addressShared, includedOne IPv4 of your own, ₼10 a month here
Updates and securityHostYou, about two hours a month
BackupsUsually the host; checkYou, plus storage
MailOften includedSeparate service
Second and third sitePlan limitsSame server, no extra fee

For a site that is leaving shared hosting, one of these three sizes is the usual first step:

  • Starter₼19.90/mo

    1 vCPU · 2 GB RAM · 30 GB NVMe

    Public IP +₼10/mo, With public IP: ₼29.90/mo

  • Basic₼27.90/mo

    2 vCPU · 2 GB RAM · 40 GB NVMe

    Public IP +₼10/mo, With public IP: ₼37.90/mo

  • Standard₼39.90/mo

    2 vCPU · 4 GB RAM · 60 GB NVMe

    Public IP +₼10/mo, With public IP: ₼49.90/mo

Prices in manat (AZN), billed monthly. The public IP is +₼10 a month and is assigned automatically.

Starter is ₼19.90 a month, public IP +₼10 (₼29.90 in all), and suits one cached site. Basic, at ₼37.90 with public IP, has the same 2 GB of RAM with a second vCPU and 40 GB of disk, which helps when PHP and the database work at the same time. Standard, at ₼49.90 with public IP, leaves room for a database and a few more projects. If you are between sizes, use the RAM guide and take the larger neighbour from the price list.

Options between the two

  • Managed containers. You have an application in a Docker image and no wish to run Linux: containers skip the operating system.
  • Split the job. Keep the website on shared hosting and put only the bot, the API or the worker on a small VPS.
  • VPS with a setup done by engineers. The server is yours, the first configuration and the deployment pipeline are made by somebody experienced.
  • Keep mail separate. Whatever you choose for the site, business email on its own service survives every later move.

If you decide to move

  1. Lower the DNS record's TTL to 300 seconds a day earlier.
  2. Build the new server and copy files and database.
  3. Test through your local hosts file, including forms and checkout.
  4. Switch DNS, keep the old account for at least two weeks.
  5. On the first day, set up a backup job and an update schedule: nobody else does it now.

Each step is explained with commands in how to migrate a website to a VPS. If mail lives on the old hosting, move or re-point it before closing the account.

Shared hosting or VPS: questions

Is a VPS always faster than shared hosting?

No. It gives you a fixed size of CPU, memory and disk instead of account limits, which makes speed more predictable. A slow plugin or missing cache stays slow on any server.

At how many visitors should I switch to a VPS?

There is no fixed number. A cached blog can serve tens of thousands of page views a day on shared hosting, while a shop with a heavy catalogue may struggle with a few hundred. Response time at the busy hour and limit errors are better signals.

Can I have a control panel on a VPS?

Yes, you can install one yourself if it supports your operating system. It uses memory and needs updates of its own, so plan at least 2 GB of RAM.

Is a VPS safer than shared hosting?

It isolates you from the other customers, but only if you maintain it. An unpatched VPS with an open database port is less safe than a carefully run shared host.

Can I go back from a VPS to shared hosting?

Yes, if the site uses only PHP and MySQL. Copy the files, import a database dump and switch DNS. Custom services such as Redis or background workers have to be dropped or replaced.

Read next

All VPS pages

This page in other languages: Русский · Türkçe

Servers in Baku, prices in manat

Create an account, top up your balance and order the plan you need.