Case Study

A PHP security update took down the control panel, and not one line of configuration had changed

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

200 → 500 → 200

Control panel before the patch, right after it, and after the fix

248 packages

PHP packages upgraded across 12 versions, none removed

0 lines

Of PHP configuration changed by the update

Environment

Same config, different service unitBefore the update, PHP 8.3 FPM could write to the control panel folders under /usr/local. The updated package shipped a service unit with ProtectSystem=full, which mounts /usr read-only for the service, so the panel failed. A drop-in with ReadWritePaths for three panel folders restored write access while keeping the protection.Same configuration, different service unitBefore the updatephp8.3-fpm.service/usr writablepanel 200After the updateProtectSystem=full/usr read-onlypanel 500Drop-in addedReadWritePaths: 3 foldersprotection keptpanel 200What did not changePHP configuration: byte-identical before and afterThe panel writes its temp and cache folders under /usr/local

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 problem

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.

Investigation

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.

Why we fixed forward

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.

At a glance

Challenge

After patching twelve PHP versions for PHP2Shell, every site worked but the hosting control panel returned 500.

Approach

The configuration was identical. The new PHP 8.3 service unit made /usr read-only, and the panel writes under /usr/local.

Result

A systemd drop-in opened three panel folders and kept the protection. Panel back about two minutes later, by the timestamps.

The fix

  1. A drop-in, not an edit: /etc/systemd/system/php8.3-fpm.service.d/ispconfig-rw.conf, so the next package update does not overwrite it
  2. Open only what the panel writes: ReadWritePaths= for ISPConfig’s interface/temp, interface/cache and interface/web/temp
  3. Keep the protection: ProtectSystem=full stays in force for everything else
  4. Reload systemd, restart PHP 8.3 FPM, then check the effective unit shows both settings and the three folders are mounted read-write
  5. Check the panel, not the service: three requests in a row, all 200

Outcome

Patched, 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.

More case studies

PHP2Shell Fleet Patching

500+ servers patched, zero customer downtime

cPanel Ubuntu Upgrade Stuck Half-Way

5,141 / 5,141 database tables before and after

nginx Open Files Limit Under SELinux

1,024 → 65,000 open files per worker, verified live

Need security patches applied without breaking what works?

We patch fast, check every service against a baseline, and know the way back before we start.