6 Things to Do Right After Your VPS Is Provisioned: A Practical Checklist

When I got my first VPS, the first thing I did after logging in was install the control panel and upload WordPress — I wanted a website live in five minutes. Three months later I paid for it: the OOM killer took down my processes on a memory spike, the panel port sat naked on the public internet getting scanned, and one system update broke PHP into a 502. Flipping back through the logs, I realized every one of those problems could have been plugged in “the first hour after boot”. This article lists the 6 things worth doing the moment a VPS lands in your hands — all lessons I learned the hard way.

For context: my experience comes from a small WordPress VPS (the 1 GB RAM class) on Debian/Ubuntu-family systems. Commands vary across distros, and anything touching the firewall or SSH deserves a test run first — locking yourself out is the classic beginner disaster.

Task 1: Update the System While It’s Still Clean

  • Run apt update && apt upgrade (yum/dnf on CentOS) right away to pull the kernel and packages current. Updating before anything is installed means the fewest conflicts;
  • Set the timezone correctly while you’re at it (timedatectl set-timezone Asia/Shanghai) — wrong timestamps in logs will drive you crazy when debugging;
  • Reboot once after updating and confirm the machine comes back up cleanly.

This step takes less than ten minutes, and it sets your security baseline for the next few months.

Task 2: Harden SSH — Don’t Run It in Default Mode

The item I most want to slap my past self over. A public-facing VPS gets its SSH port scanned daily; the auth log is wall-to-wall brute-force attempts:

  • At minimum, give root a strong password — a long random string, nothing reused from other accounts. The more thorough route: switch to key-based login and disable password auth entirely;
  • Changing the default port 22 filters out most indiscriminate scanning (pick a high port between 10000–60000);
  • Install fail2ban to auto-ban IPs that keep failing login attempts — it costs almost nothing.

One warning: before changing the SSH port, allow the new port through the firewall first, then edit the config — and never close your current session. Get the order wrong and that’s a lockout. I’ve debugged my own SSH-session mishaps before; the lesson is recorded in my notes.

Task 3: Firewall — Open Only the Ports You Actually Use

  • Use ufw (or your cloud provider’s security group — pick one, don’t stack both and confuse yourself): default deny inbound, allow only SSH, 80, and 443, plus the panel port if needed;
  • For the control panel: change the default port or restrict it by source IP — a panel entrance naked on the public internet is a scanner’s favorite door;
  • After enabling the firewall, test 80/443 over mobile data to confirm the rules aren’t backwards.

Task 4: On Small-Memory Machines, Set Up Swap First

A 1 GB VPS running WordPress + MySQL will crash exactly when memory peaks:

  • Create a 1–2 GB swap file (fallocate + mkswap + swapon, three steps) to give the system a cushion — the odds of the OOM killer striking drop off a cliff;
  • Swap isn’t a substitute for RAM, but “rescued from the occasional spike” versus “site down outright” are two different lives;
  • Lower swappiness (e.g. 10) so the system doesn’t lean on swap and drag down normal speed.

This is the best cost-benefit item on my whole list — ten minutes of setup buys back a midnight outage notification.

Task 5: Automatic Backups — Don’t Remember Only After Losing Data

  • The control panel’s scheduled tasks handle it: pack the site directory + database daily, rolling retention of the last 7–14 copies;
  • The key point: backups must live off the machine. Push them to object storage, a cloud drive, or another server — when the VPS dies or gets compromised, on-machine backups die with it;
  • Once a month, do a restore drill: actually unpack a backup and import it. A backup that’s never been restored is just a placebo.

On verifying that services like the database and Redis are genuinely running, my own troubleshooting is written up in the Redis-not-connected post — good companion reading.

Task 6: Install Monitoring — Be the First to Know When Things Break

  • Easiest path: the panel’s built-in monitoring + email/WeChat alerts, with CPU, memory, disk, and downtime all enabled;
  • For something lighter, point a free uptime monitor at port 80 and get pinged when the site drops;
  • Set the disk alert threshold around 80% — WordPress logs and caches quietly eat small disks alive.

After the 6 Tasks, Then Start Building

All six take about an hour combined. Then run the real pipeline: for picking a machine, see my VPS selection checklist; for the build itself, follow the 8-stage setup tutorial from domain to launch. If you enjoy tinkering, my Docker-on-VPS trial notes are worth a look.

As for whether the machine itself is worth it: I’m on InterServer’s $6/month tier — costs and maintenance notes here for comparison.

Wrap-Up: One Hour Buys Half a Year of Peace of Mind

  • System updates + correct timezone → the security baseline;
  • SSH hardening + firewall → blocks 99% of indiscriminate scanning;
  • Swap + monitoring → the small machine stops crashing at 2 a.m.;
  • Off-machine backups → even in the worst case, you can start over.

None of this is glamorous — zero “I launched a website” dopamine. But a VPS is the kind of thing where you only find out what that first hour was worth on the day something goes wrong.

Related Reading

This article reflects the site owner’s personal experience hardening a small VPS (WordPress + control panel) — covering system updates, SSH, firewall, swap, backups, and monitoring. The commands were verified on Debian/Ubuntu-family systems; other distros may differ. Firewall and SSH changes carry the risk of locking yourself out — verify allow rules and keep your current session open before making changes. Commands are provided for reference only; execute them in the context of your own environment and official documentation.

Leave a Reply

Your email address will not be published. Required fields are marked *