Ubuntu20.04 amd64 Apache/PHP7.4 app; separate MySQL8.4 module. Optional Docker proxy: official nginx1.30.6-r1 Alpine3.24 amd64 and matching installed modules. This proxy is separate from the Ubuntu host/app. Unknown/native Ubuntu NGINX layouts need their own vendor packages.
-
Verify the published ZIP SHA256, extract it and verify every internal file. It includes prior PHP/CA/MySQL8.4.13 binaries, original signed NGINX before/after APKs and the new generic scripts. No update-time dependency downloads.
sha256sum -c SHA256SUMS
Prepare console access, a maintenance window, sufficient backup/Docker storage and a protected external backup. Identify and safely drain ALL database writers and administrators, including external jobs and services. Read README-EN.txt for compatibility, private recovery and unsupported layouts.
-
Run the application check where PHP is installed, as root; inside the application container when present. Optional extensions are detected, newer packages are preserved.
sudo sh ./update-foxbox.sh app check
-
After preparing recovery, update missing PHP/CA packages. The updater backs up that appliance’s original packages and configuration, checks a local-only APT plan and restarts Apache only if PHP changes. CA changes rebuild system trust and preserve local CA files.
sudo sh ./update-foxbox.sh app apply --recovery-ready
-
Verify PHP/CA. Reload persistent PHP CLI services through their actual manager if flagged. Canonical now marks Focal shared zlib and zsync Not affected. Installed Focal rsync/klibc still cause intentional exit3 PARTIAL_VENDOR_EMBEDDED_ZLIB_PENDING. Newer installed CA revisions are preserved and verified for revoked-root absence; their version assessment remains explicit, without a downgrade.
sudo sh ./update-foxbox.sh app verify
-
On the Docker HOST, identify the optional proxy. Replace PROXY with its actual name. Native Ubuntu NGINX and unknown variants are blocked; Apache appliances do not need NGINX installed just for this update.
sh ./update-foxbox.sh nginx check --container PROXY
-
After preparing private external recovery, update only the qualified proxy. It verifies official APK signatures offline, backs up configuration/certificates, preserves existing config and removed vendor defaults, then restarts the same container with unchanged networks/ports.
sh ./update-foxbox.sh nginx apply --container PROXY --maintenance-ready
sh ./update-foxbox.sh nginx verify --container PROXY
-
Check real HTTPS/login and backends without sending messages. Rollback is guarded by current config/container/package hashes and restores the original vulnerable version only for operational recovery. A restart retains the patch; recreating the old image loses it, so update the deployment build/pin separately or reapply to compatible recreated proxies.
sh ./update-foxbox.sh nginx rollback --container PROXY --maintenance-ready
-
On the Docker host, replace foxbox-db and foxbox-app with actual container names and list every writer. Stage the MySQL update. If the default bridge is attached, first verify that its dynamic address is not used as a fixed endpoint, then add --default-bridge-address-dynamic. No implicit branch migration.
sh ./update-foxbox.sh mysql check --db-container foxbox-db
sh ./update-foxbox.sh mysql apply --db-container foxbox-db --writers foxbox-app --maintenance-ready
-
STAGED_READ_ONLY keeps writers suspended. The script preserves the original container/volume, creates logical and cold physical backups, restores into a new volume, preserves MEMORY data and the original server/client configuration, then checks the upgraded server, tables, networks and ports. Verify and copy the private checkpoint to protected external storage before reopening writes. Use the same operator/home throughout.
sh ./update-foxbox.sh mysql verify --db-container foxbox-db
-
After validation, commit reopens writes and resumes the listed containers. Check actual application daemons, login, read-only database access and queue health. Never generate real test messages/orders. From commit onward automatic rollback is blocked to protect newer transactions.
sh ./update-foxbox.sh mysql commit --db-container foxbox-db
sh ./update-foxbox.sh mysql verify --db-container foxbox-db
-
App recovery restores the customer’s original packages only if post-update hashes still match. MySQL rollback is available only before commit, with writers still suspended: it restores the original image and original volume, including MEMORY contents. It never starts an older MySQL on upgraded data. After writes resume a separate recovery plan must preserve newer transactions.
sudo sh ./update-foxbox.sh app rollback --recovery-ready
# MySQL: only BEFORE commit / solo PRIMA della commit
sh ./update-foxbox.sh mysql rollback --db-container foxbox-db --maintenance-ready