Case Study
We patched twelve PHP versions on a customer server for the PHP2Shell vulnerabilities. Every website came back as before, but the hosting control panel failed straight away, saying one of its folders was not writable. The PHP configuration was byte-for-byte the same. What had changed was the service unit shipped with the new PHP 8.3 package: it now made /usr read-only for the service, and the panel lives under /usr/local. A three-line drop-in gave the panel back its folders, kept the new protection, and had it working again about two minutes later.
October 2026 · 4 min read
SECTOR
Business running its own websites and file sharing
SCALE
Emergency security patching (PHP2Shell)
PLATFORM
Ubuntu 24.04, ISPConfig 3.3, nginx, PHP 5.6 to 8.5 from a third-party repository, Nextcloud
ENGAGEMENT
Regression: control panel down after the patch
Control panel before the patch, right after it, and after the fix
PHP packages upgraded across 12 versions, none removed
Of PHP configuration changed by the update
Scroll the diagram sideways to see all of it →
Comparing the configuration found nothing, because the change was in how the service was started.
The patch worked, and the panel broke. PHP2Shell (CVE-2026-109618 and CVE-2026-109619) allowed remote code execution through PHP’s upload handling, so the fixed builds went on the evening after they were released. The run upgraded 248 PHP packages, added 1 and removed none, and we confirmed both CVE numbers in the changelog of all twelve versions. All eleven PHP-FPM services restarted on the new builds, and the six websites and Nextcloud answered exactly as in the baseline taken before the patch. The control panel did not. It went from 200 to 500 at once, with Please make sure the folder '…/interface/lib/classes/IDS/../../../temp' is writable.
The configuration had not changed. The sandbox had. The obvious suspect was a changed php.ini or pool file, but the configuration was byte-identical to the backup taken minutes earlier. So we looked at how the service was started rather than how it was configured. The updated package shipped a new php8.3-fpm.service unit, dated the day before, with ProtectSystem=full. That systemd setting mounts /usr, /boot and /etc read-only inside the service’s own view of the file system. /proc/<pid>/mountinfo for the running PHP-FPM master confirmed it: /usr was mounted read-only. ISPConfig keeps its temporary and cache folders under /usr/local/ispconfig, so the panel could still read its code but no longer write anything.
A file-by-file diff of the configuration found nothing, because nothing in it had changed. The service had been given a smaller world.
There was no going back. The usual answer to a broken update is to roll it back, and that was not available here. The repository only keeps its current builds, so the previous packages returned 404, and the server had no virtual machine snapshot, only configuration backups. Going back would also have meant reinstalling the vulnerable PHP. Turning the protection off would have worked as well, but ProtectSystem is a sensible hardening default. So we kept it and opened exactly the three folders the panel needs to write.
After patching twelve PHP versions for PHP2Shell, every site worked but the hosting control panel returned 500.
The configuration was identical. The new PHP 8.3 service unit made /usr read-only, and the panel writes under /usr/local.
A systemd drop-in opened three panel folders and kept the protection. Panel back about two minutes later, by the timestamps.
/etc/systemd/system/php8.3-fpm.service.d/ispconfig-rw.conf, so the next package update does not overwrite itReadWritePaths= for ISPConfig’s interface/temp, interface/cache and interface/web/tempProtectSystem=full stays in force for everything elsePatched, protected, and the panel back. All twelve PHP versions were on the fixed builds, with 0 PHP updates still pending. The control panel returned 200 on every check, and the six websites and Nextcloud matched the baseline. By the timestamps, the panel was down for about two minutes, from the PHP 8.3 restart to the restart with the drop-in. The PHP 8.1 and 8.4 units from the same repository carry the same setting. The panel’s pool runs on 8.3, not on them, and on a later server we created the drop-in for PHP 8.1 before the update instead of after it. The lessons we take: compare service units as well as configuration after a package update, and know before you start whether a rollback is possible at all.
We patch fast, check every service against a baseline, and know the way back before we start.