On a systemd-based VPS the journal is not a plain text file you can tail and forget — it is a structured, indexed binary store managed by systemd-journald, and left at its defaults it will quietly grow until it claims a slice of your disk you never agreed to give it. That structure is a feature, not an annoyance: every …
Read MoreNo space left on device. The error stops your application cold, and the first instinct — delete some logs and move on — usually misses what is actually wrong. A full disk on a VPS is rarely one obvious huge file; it is more often a directory you forgot about, a log that a process is still writing to after you "deleted" …
Read MoreEvery shared-root server has the same origin story. One person spins up the VPS, a second needs access so they get handed the root password, a contractor joins and gets it too, and within a year nobody can say who logged in last week or who still knows the password that protects everything. When something is deleted at …
Read MoreCron has scheduled Unix jobs for forty years and it still works, but on a systemd-based VPS it is no longer the only option — and for anything you need to operate rather than just fire-and-forget, systemd timers are the better tool. The difference is not nostalgia versus novelty; it is that a cron job is invisible …
Read More1/var/log/myapp/*.log { 2 daily 3 rotate 14 4 compress 5 delaycompress 6 missingok 7 notifempty 8 create 0640 www-data adm 9 sharedscripts 10 postrotate 11 systemctl reload myapp >/dev/null 2>&1 || true 12 endscript 13} That single stanza is the whole job: it keeps two weeks of compressed application logs, never lets …
Read MoreA VPS you stood up six months ago and rarely log into is the most dangerous machine you own. It is still serving traffic, still listening on its open ports, and still running whatever package versions it had the day you walked away — including the ones with public exploits published last week. Patch hygiene is the …
Read MoreOut of the box, Nginx is fast and stable but tells the world more than it should and accepts more abuse than it needs to. It advertises its exact version in every response header, negotiates TLS protocols that should have been retired years ago, and lets a single misbehaving client hammer an expensive endpoint as hard …
Read MoreThere is no longer any reason to serve a website over plain HTTP. A trusted TLS certificate costs nothing, browsers flag sites without one as "Not Secure," and search engines treat HTTPS as a ranking signal. The piece that used to be painful — issuing, installing, and renewing certificates every ninety days — is now …
Read MoreThe backup you never tested is not a backup — it is a hope. Every administrator who has lost data has a version of the same story: the job had been "running fine for months," and the first time anyone tried to restore from it, the files were empty, stale, or never there at all. The fix is not exotic software. rsync and …
Read MoreThe moment an Ubuntu VPS gets a public IP, automated bots start knocking on port 22. Within hours you will see thousands of failed login attempts in your auth log — scripts cycling through root, admin, ubuntu, and a dictionary of weak passwords. SSH is the front door to your server, and the default configuration leaves …
Read More