Select a PHP-FPM version per website #83

Merged
parkel merged 2 commits from feature/site-php-runtime into main 2026-11-22 00:00:04 +01:00
Owner

Summary

  • Allow several PHP-FPM series on the same web node. New sites use the newest installed stable series allowed by the hosting plan. Persist the chosen series and backfill existing local activations with their previous runtime during the migration.
  • Let assigned customers and authorized operators request an explicit version change. Prepare and validate the target pool before switching the shared route for the primary site and its HTTP and HTTPS aliases. Preserve pool limits and recover from failures or interrupted replies.
  • Check the selected runtime for website operations, monitor the installed PHP-FPM services, and remove the correct pool when retiring a released website.
  • Document the optional signed DEB.SURY.ORG APT archive, the plan allowlist, and removing a runtime after its websites have moved.

Closes #81

Verification

  • Passed all 424 Django tests, Ruff, and the migration consistency check.
  • Upgraded an existing Debian 13 installation. Its PHP 8.4 website retained its runtime and settings with 8.5 and 8.6 installed. Newly activated websites used 8.6 by default and 8.5 under a restricted plan.
  • Switched the existing website and its HTTP and HTTPS alias. An invalid target pool left the previous version serving. The retry succeeded, and the chosen versions survived service restarts. Verified replay cleanup, pool limit changes, suspension, resumption, and account release.
  • Served 8.5 and 8.6 concurrently and switched a website on an Ubuntu 26.04 systemd VM. Installed the signed Sury packages on Ubuntu 24.04 in a container. Its SysV reload did not refresh FPM, so the full hosting check used the 26.04 VM.

Deployment

Apply migration 0042 and upgrade the panel and local provisioning worker from the same source release. Operators install and maintain PHP packages through APT.

## Summary - Allow several PHP-FPM series on the same web node. New sites use the newest installed stable series allowed by the hosting plan. Persist the chosen series and backfill existing local activations with their previous runtime during the migration. - Let assigned customers and authorized operators request an explicit version change. Prepare and validate the target pool before switching the shared route for the primary site and its HTTP and HTTPS aliases. Preserve pool limits and recover from failures or interrupted replies. - Check the selected runtime for website operations, monitor the installed PHP-FPM services, and remove the correct pool when retiring a released website. - Document the optional signed DEB.SURY.ORG APT archive, the plan allowlist, and removing a runtime after its websites have moved. Closes #81 ## Verification - Passed all 424 Django tests, Ruff, and the migration consistency check. - Upgraded an existing Debian 13 installation. Its PHP 8.4 website retained its runtime and settings with 8.5 and 8.6 installed. Newly activated websites used 8.6 by default and 8.5 under a restricted plan. - Switched the existing website and its HTTP and HTTPS alias. An invalid target pool left the previous version serving. The retry succeeded, and the chosen versions survived service restarts. Verified replay cleanup, pool limit changes, suspension, resumption, and account release. - Served 8.5 and 8.6 concurrently and switched a website on an Ubuntu 26.04 systemd VM. Installed the signed Sury packages on Ubuntu 24.04 in a container. Its SysV reload did not refresh FPM, so the full hosting check used the 26.04 VM. ## Deployment Apply migration 0042 and upgrade the panel and local provisioning worker from the same source release. Operators install and maintain PHP packages through APT.
parkel added this to the v0.5.0 - Operator workflows and deployment milestone 2026-11-21 23:59:35 +01:00
parkel added 2 commits 2026-11-21 23:59:35 +01:00
Document multi-PHP deployment and website version changes
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
f9641ef64a
parkel added the area/deploymentarea/hosting
kind
feature
labels 2026-11-21 23:59:36 +01:00
parkel merged commit f6888a11b9 into main 2026-11-22 00:00:04 +01:00
parkel deleted branch feature/site-php-runtime 2026-11-22 00:00:04 +01:00
Sign in to join this conversation.