iServerSupport Talk to an engineer

Server Patching Best Practices: How Often to Patch, How to Test and How to Roll Back

A practical server patching process: how often to patch, how to rank urgency, test before production, restart correctly and roll back when an update goes wrong.

Package icon with an error badge representing a server update that needs testing and rollback

Every administrator knows patching matters, and most can name a server they have not patched in a year. The reasons are always the same: an update once broke something, nobody wants to risk downtime, and the machine seems fine. The trouble is that "seems fine" describes a server right up until the day a known vulnerability is used against it. A reliable patching process is not about patching faster. It is about making updates routine enough that the urgent ones, which do arrive, are not a scramble.

Treat patches in two lanes

The most useful idea in patch management is that not every update deserves the same urgency. Split them into two lanes.

The routine lane covers the regular stream of bug fixes and low-risk security updates. These go through a predictable schedule, say weekly or every two weeks, tested first on a staging copy and applied in a maintenance window.

The emergency lane is for vulnerabilities that are being actively exploited or that allow an outsider to run code without logging in. Those cannot wait for the schedule. When the PHP project released fixes for two critical remote code execution flaws in October, the right response was hours, not weeks. Our overview of PHP2Shell, CVE-2026-109618 and CVE-2026-109619 shows how that works in practice: find every affected install, update, restart, verify.

To decide which lane an update belongs in, look at three things: whether the flaw can be reached from the internet, whether it needs a login, and whether exploitation is already happening. CISA maintains a catalog of known exploited vulnerabilities that is a good objective signal. Anything listed there on software you run belongs in the emergency lane.

Pick a cadence you will really keep

A schedule that is too ambitious gets abandoned. For most small and mid-sized estates, a fixed weekly or biweekly window for routine updates works, with a monthly review of anything held back. What matters is that the window is on the calendar, that someone owns it, and that it happens even when nothing seems urgent. NIST's guide to enterprise patch management planning frames patching as a maintenance process to plan and run, not a reaction to events, which is the right mindset.

Operating system packages are only part of the picture. Remember the layers above them: web server and PHP versions, control panel updates, database engines, and any software installed by hand, which is the part most likely to be forgotten. A written inventory of what runs where is what makes the rest possible. Our Linux server maintenance checklist lists the recurring tasks around it.

Test before production, in proportion to the risk

You do not need an elaborate test lab. You need a copy of the server, or at least of the important services, where an update can be applied first. For a hosting server, that might be a snapshot restored to a test machine, followed by a check that the main sites load, mail sends and the database answers. For a low-risk update, a quick smoke test on one non-critical machine before the rest may be enough.

Keep the test short and written down. A checklist of five things to verify after every update, performed the same way each time, catches most problems and takes minutes.

Take a rollback route before you start

The question that separates calm patching from panic is: if this goes wrong, how do I go back? Decide before you begin. On virtual machines, a snapshot taken immediately before the update is the quickest way back. On physical servers, rely on tested backups and on the package manager's history, which on RPM-based systems lets you review and undo transactions with dnf history. For control panels and databases, a fresh backup of the application data matters as much as the operating system image.

A rollback you have never tried is a hope, not a plan. Practice restoring at least once. Our guides on configuring backups in WHM and cPanel and automated backups in Plesk cover the backup side.

Do not forget the restart

Installing an update and applying it are different things. A long-running process keeps the old code loaded in memory until it restarts, so a patched library or PHP build does nothing until the service using it is restarted. This is the single most common patching mistake, and it leaves servers believing they are protected when they are not.

After updating, restart the affected services during the window, and check for processes still using outdated libraries. On Debian and Ubuntu, needrestart reports this directly. On RPM-based systems, needs-restarting -s lists services that should be restarted. Reboot when the kernel or core libraries changed, and plan for that, as a server that has not rebooted in two years may not come back cleanly. If one does not, our guide on a server that will not boot after a kernel update is the next stop.

Verify, then record what you did

Confirm each update took effect. For vulnerability fixes, the version number alone can mislead, because distributions often backport a fix without changing the visible version. Check the package changelog for the identifier of the issue you meant to fix. Then write down what was changed, when, and by whom. A short log turns the question "did we patch that?" from an argument into a lookup, and it is invaluable when an incident later needs a timeline.

Be honest about old software

Some servers cannot be patched, because the operating system or language version is no longer supported. That is a risk to manage, not ignore: schedule the upgrade, isolate the machine as much as possible, and put compensating controls such as restricted access and monitoring around it until it is replaced. Unsupported software tends to be where the worst incidents start.

What the routine looks like when it works

Patching done well is quiet: a calendar entry, a short test, a snapshot, an update, a restart, a verification, a log line. It rarely feels heroic, which is the point. If you would rather not run that cycle yourself, our proactive server management service combines scheduled patching, monitoring and planned maintenance, and you can contact us to see how it would fit the servers you run.

Proactive server management

Want patching handled on a schedule by engineers?

We combine planned patching, monitoring and maintenance so updates are tested, applied and verified without you chasing them.