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

This commit is contained in:
parkel committed 2026-11-21 23:58:45 +01:00
1 parent 0c8a28b7e2
commit f9641ef64a
2 files changed
+65 -4

No files matched your search

+50 -1
View File
@@ -327,7 +327,54 @@ the managed sites. Use **Change storage limit** on the deployed account to
apply the hosting plan's default or choose a per-site value. apply the hosting plan's default or choose a per-site value.
[Website storage quotas](development.md#apply-a-website-storage-limit) [Website storage quotas](development.md#apply-a-website-storage-limit)
### Configure PHP per website ### Choose PHP versions for hosted websites
Use the distribution PHP-FPM packages for a single PHP series. To offer more
series on the same node, enable an APT archive that supplies co-installable
PHP-FPM packages for the node's distribution. DEB.SURY.ORG supplies signed
packages for Debian 13 and Ubuntu. Follow its keyring and `Signed-By`
instructions for the node's release. [DEB.SURY.ORG setup](https://packages.sury.org/php/README.txt)
Install and start each series you want to offer. Install the application's
required PHP extensions for each series it will use. APT remains responsible
for package and security updates.
```sh
sudo apt install php8.5-fpm php8.6-fpm
sudo systemctl enable --now php8.5-fpm php8.6-fpm
```
Under **Hosting plans**, enter the **Allowed PHP series** as a comma-separated
list, such as `8.5, 8.6`. A blank list makes every installed stable series
available. New website activations select the newest installed stable series
in the plan. Each active site retains its recorded series when a package or
plan changes. APT patch releases update that series in place.
Use **Change PHP version** on an active account to schedule a switch.
Assigned customers can change their own sites. Operators need permission to
view the account and **Can change site php version**. The page shows the
active series and the progress of the request. Site aliases, including
aliases served over HTTPS, switch with the primary site.
Coulobre validates the target pool and waits for its socket before switching
traffic. It retains the website's PHP pool limits. If a request fails,
check the worker's diagnostic, correct the problem, and submit the same
series again. The web node can confirm a switch whose reply was interrupted.
On upgrade, existing local activations retain the previously used series.
The existing Apache configurations move to the shared socket route during
the first version change. Preview and apply manifests keep their account
and domain identity. Upgrade the panel and local activation worker together.
To withdraw a series, remove it from plan allowlists and explicitly move
each website that uses it. Verify the new PHP version over HTTP and HTTPS.
Check the old series' pool directory for website or tool pools before stopping
its service and removing the package. Retain working configuration for the
series while any pool still needs it. phpMyAdmin, Roundcube, and command-line
jobs use their own configured runtimes. Use a versioned command such as
`php8.5` for a job that must stay on a specific series.
### Configure PHP pool limits per website
Under **Hosting plans**, set default PHP memory, upload size, request timeout, Under **Hosting plans**, set default PHP memory, upload size, request timeout,
or PHP-FPM worker limits. The panel captures these values when an operator or PHP-FPM worker limits. The panel captures these values when an operator
@@ -1635,6 +1682,8 @@ COULOBRE_SERVICE_HEALTH='{"panel-01":{"local":["panel","worker","scheduler","apa
Choose an ID for each node using lower-case letters, numbers, and hyphens, Choose an ID for each node using lower-case letters, numbers, and hyphens,
starting with a letter. Keep the IDs stable for the same hosts. List one starting with a letter. Keep the IDs stable for the same hosts. List one
`local` node per panel installation and use `ssh` for each additional host. `local` node per panel installation and use `ssh` for each additional host.
Use `php-fpm` under `local` to monitor the installed stable PHP-FPM services.
The check reports a problem when any of those services is unavailable.
Use `bind9`, `postfix`, `dovecot`, `spamd`, and `spamass-milter` under Use `bind9`, `postfix`, `dovecot`, `spamd`, and `spamass-milter` under
`local` for co-located services or under `ssh` for separate nodes. Only `local` for co-located services or under `ssh` for separate nodes. Only
list the spam filter units where filtering is configured. Update the list the spam filter units where filtering is configured. Update the
+15 -3
View File
@@ -41,7 +41,7 @@ operator applies a website quota from the account page.
Set optional PHP resource defaults on a hosting plan. Coulobre applies them Set optional PHP resource defaults on a hosting plan. Coulobre applies them
on first local activation and when an operator reapplies the plan on the on first local activation and when an operator reapplies the plan on the
account page. See [website PHP settings](deployment.md#configure-php-per-website). account page. See [website PHP settings](deployment.md#configure-php-pool-limits-per-website).
Changing or reassigning a plan preserves existing databases and mailboxes. If Changing or reassigning a plan preserves existing databases and mailboxes. If
the new limit is at or below current usage, the panel blocks additional the new limit is at or below current usage, the panel blocks additional
@@ -812,8 +812,11 @@ sudo /opt/coulobre/bin/coulobre-web-node apply coulobre-web-plan-1.json
The command reserves the account ID and domain on the node, creates a system The command reserves the account ID and domain on the node, creates a system
user and a document root under `/srv/coulobre/web/<account-id>/public`, and user and a document root under `/srv/coulobre/web/<account-id>/public`, and
installs Apache and PHP-FPM configuration. It validates both configurations, installs Apache and PHP-FPM configuration. It selects the newest stable
reloads PHP-FPM, waits for the per-site socket, then reloads Apache. installed series for a new site. Pass `--php-version 8.5` to select a
specific installed series at initial activation. It validates both
configurations, reloads PHP-FPM, waits for the per-site socket, then reloads
Apache. Reapplying the manifest preserves the active series.
Reapply the same manifest to retry or verify an existing installation. The Reapply the same manifest to retry or verify an existing installation. The
node checks the account registry for domain conflicts and protects existing node checks the account registry for domain conflicts and protects existing
@@ -832,6 +835,7 @@ The JSON report includes the manifest identity and one of three states.
- `configured` means the reservation, Unix account, document root, service - `configured` means the reservation, Unix account, document root, service
configuration, running services, and PHP-FPM socket match the manifest. configuration, running services, and PHP-FPM socket match the manifest.
The report includes the active `php_version`.
- `not_installed` means the node has no reservation for the account. - `not_installed` means the node has no reservation for the account.
- `needs_attention` includes the first mismatch or service problem found. - `needs_attention` includes the first mismatch or service problem found.
@@ -931,6 +935,14 @@ read the JSON reply to EOF. A `configured` reply includes the account ID and
domain. A `failed` reply includes a diagnostic in `problem`. Retry the same domain. A `failed` reply includes a diagnostic in `problem`. Retry the same
manifest if the connection closes before a reply arrives. manifest if the connection closes before a reply arrives.
The panel uses `activate_with_runtime` with a deployment manifest under
`site`, the PHP limits under `php_settings`, and an `allowed_versions`
array of PHP series. An empty array allows all installed stable series.
A successful reply includes the `applied_php_version` and
`applied_php_settings`. To change the active pool, send `set_php_version`
with the same `site` and a `php_version` series. Retry the same request
after an interrupted reply to confirm the applied series.
The socket also accepts a storage request with The socket also accepts a storage request with
`"operation": "measure_storage"` and the deployment manifest under `"site"`. `"operation": "measure_storage"` and the deployment manifest under `"site"`.
A successful reply includes the request identity and `used_bytes`. A successful reply includes the request identity and `used_bytes`.