Hardening Self Hosted Linux CMS Nodes
Command-line diagnostics running on a minimalist Linux desktop (Photo via Unsplash) Most Linux server security guides read like they were written by someone who has never shipped a Friday afternoon hotfix. They hand you forty sysctl knobs, disable half the PHP standard library, and suggest setting every directory to 0400 . Twenty minutes later, your CI runner breaks, Composer throws permission errors, and editors can't upload a 300KB hero image. Real system hardening for a self-hosted CMS box has to survive routine deployments and messy editorial workflows. If you already moved off managed hosting following our notes on self-hosting web stacks on bare metal , the next step is shrinking the blast radius without breaking atomic releases. On WordPress, Drupal, Craft, or Statamic nodes, breaches rarely start with a kernel zero-day. They start with an unpatched plugin, a weak SSH password, or a writable webroot. Here is the baseline I run on Debian 12 and Ubuntu 24.04 CMS nodes. E...