A virtual private server gives you a full Linux machine for a predictable monthly fee, which suits side projects, client sites and early-stage products that have outgrown shared hosting. The catch is that you become responsible for security, updates and backups. This course walks you through running a VPS properly, from the first login to a monitored, backed-up production app.

What you'll learn

  • How VPS hosting compares with shared hosting, managed platforms and full cloud setups
  • Choosing a provider, region and plan, using DigitalOcean, Hetzner and AWS Lightsail as examples
  • First steps on a new Ubuntu server: SSH keys, a non-root user, disabling password login and a firewall
  • Automatic security updates and basic intrusion protection with tools such as fail2ban
  • Pointing a domain at your server and setting up DNS records
  • Serving apps behind Nginx or Caddy with free HTTPS certificates
  • Running Node.js, Python and PHP apps as services with systemd or Docker Compose
  • Deploying with Git and scripts, or with a self-hosted platform such as Coolify or Dokku
  • Running a database on the server versus using a managed database
  • Backups, snapshots, uptime monitoring and knowing when to scale up or move on

Who it's for

  • Developers deploying their first app outside a managed platform
  • Freelancers and agencies hosting several small client sites
  • Founders who want to keep early hosting costs low without cutting corners on security

Prerequisites

  • Basic Linux command line skills (see Linux Command Line for Developers)
  • A web app you want to deploy, or one of our sample apps
  • An account with a VPS provider; small plans are enough to follow along

Outcomes

By the end of this course you will be able to:

  1. Set up and secure a fresh VPS following sensible defaults.
  2. Deploy a web app with a custom domain and HTTPS.
  3. Ship updates with a repeatable deployment process instead of editing files on the server.
  4. Back up, monitor and maintain the server so problems are caught early.

Course outline

ModuleTopic
1Hosting options and choosing a VPS
2Creating a server and connecting with SSH keys
3Users, firewall and SSH hardening
4Updates, fail2ban and basic security hygiene
5Domains and DNS
6Nginx or Caddy and HTTPS
7Running apps with systemd and Docker Compose
8Deployment workflows and self-hosted platforms
9Databases: self-managed or managed
10Backups, snapshots and restores
11Monitoring, logs and scaling decisions
12Project: deploy and secure a production app

FAQ

Is a VPS cheaper than a cloud platform?

Often, for small and steady workloads. It can cost more in your own time, and managed platforms win when you need autoscaling or don't want to maintain servers. We help you weigh both.

Which provider do you recommend?

It depends on your users' location, budget and needs. We use several providers in the course and are not affiliated with any of them.

Can I host WordPress this way?

Yes. The same server setup works for WordPress, and we show the PHP and database pieces it needs.

How do I join?

Get in touch and we'll share the current format, schedule and enrolment details.