Keeping a server updated

See what’s out of date on a server, apply the parts you choose, and decide what happens to files changed by hand.

4-minute read Applies to XenoPanel 1.0.0 Updated

Security updates install themselves every day on a provisioned server, without rebooting it. Everything else waits for you: XenoPanel checks a server only when you ask, and never in the background.

See what’s out of date

Terminal
$ xenopanel server update web-1  # reads the server; changes nothing

The report lists:

  • packages with updates, with security updates marked, and whether the server needs a reboot
  • a newer MySQL patch, when this XenoPanel release has one
  • newer PHP patches for each site, in the series it’s on
  • Cloudflare’s address ranges, when they’ve changed
  • files XenoPanel wrote that were changed by hand since

Apply what you choose

Terminal
$ xenopanel server update web-1 --security-only
$ xenopanel server update web-1 --apt  # every package update
$ xenopanel server update web-1 --mysql
$ xenopanel server update web-1 --cloudflare
$ xenopanel server update web-1 --all  # --apt, --mysql and --cloudflare
  • Packages: config files you or XenoPanel changed stay as they are. Afterwards XenoPanel says whether a reboot is needed and for which packages. It never reboots a server itself, so you choose when.
  • MySQL: XenoPanel dumps every database first, then moves MySQL to the new patch. The previous patch stays installed, so a failed step goes back to it.
  • PHP: a newer patch is never applied to a site on its own. The report shows the command for each site, for example xenopanel site php example.com --patch 8.4.28, so you can move one site and check it before the next.

Files changed by hand

XenoPanel remembers each file it writes. When one was changed by hand, the report shows the difference, and you decide:

Terminal
$ xenopanel server update web-1 --keep /etc/nginx/sites-available/example.com.conf
$ xenopanel server update web-1 --restore /etc/nginx/sites-available/example.com.conf
  • --keep keeps your version. From then on it isn’t reported, and no XenoPanel change overwrites it.
  • --restore puts XenoPanel’s version back.

A site’s overrides.ini is yours to edit, so it’s never reported.

Questions about XenoPanel?

Check the help pages first, or send us a message and we’ll get back to you within 24 hours.

Need help with an app or a license? Open a support ticket →

We reply within 24 hours on business days.