Configure PHP limits per website and hosting plan #39

Merged
parkel merged 4 commits from feature/website-php-settings into main 2026-11-21 16:08:24 +01:00
Owner

Summary

  • Configure PHP memory, upload size, request timeout, and the maximum number of PHP-FPM workers on a hosting plan.
  • Snapshot the default settings for initial local activation and preserve the current pool when activating an existing website again.
  • Let operators apply site-specific settings, reapply current plan defaults, or return to the web node defaults. Show the last applied settings and request status on the account.
  • Use the existing web activation worker to validate and reload the managed PHP-FPM pool. Restore the previous configuration if validation or reload fails.

Verification

  • Ruff lint and format checks, Django migration drift check, and all 346 Django tests passed.
  • An Ubuntu run with MariaDB, Celery, Apache, and PHP-FPM exercised first activation, changes through the account page, plan reapplication, reset, and reactivation.
  • Verified PHP runtime limits through HTTP, including rejection of a file above the upload cap, serialized requests with one worker, and termination of a long request. An invalid FPM configuration left the previously applied limits in effect.
## Summary - Configure PHP memory, upload size, request timeout, and the maximum number of PHP-FPM workers on a hosting plan. - Snapshot the default settings for initial local activation and preserve the current pool when activating an existing website again. - Let operators apply site-specific settings, reapply current plan defaults, or return to the web node defaults. Show the last applied settings and request status on the account. - Use the existing web activation worker to validate and reload the managed PHP-FPM pool. Restore the previous configuration if validation or reload fails. ## Verification - Ruff lint and format checks, Django migration drift check, and all 346 Django tests passed. - An Ubuntu run with MariaDB, Celery, Apache, and PHP-FPM exercised first activation, changes through the account page, plan reapplication, reset, and reactivation. - Verified PHP runtime limits through HTTP, including rejection of a file above the upload cap, serialized requests with one worker, and termination of a long request. An invalid FPM configuration left the previously applied limits in effect.
parkel added 4 commits 2026-11-21 16:05:07 +01:00
parkel merged commit 377c90bdf3 into main 2026-11-21 16:08:24 +01:00
parkel deleted branch feature/website-php-settings 2026-11-21 16:08:24 +01:00
Sign in to join this conversation.