diff --git a/docs/deployment.md b/docs/deployment.md index ccbd168..44fd0f0 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -221,6 +221,31 @@ the managed sites. Use **Change storage limit** on the deployed account to apply the hosting plan's default or choose a per-site value. [Website storage quotas](development.md#apply-a-website-storage-limit) +### Configure PHP per website + +Under **Hosting plans**, set default PHP memory, upload size, request timeout, +or PHP-FPM worker limits. The panel captures these values when an operator +first requests local activation. A repeat activation preserves an installed +pool's settings. + +On an active account, use **Change PHP settings** to set site values or apply +the current plan defaults. This requires permission to view the account and +**Can change site php settings**. Plan edits and reassignment take effect +when an operator reapplies the defaults. Leave individual values blank to use +the web node defaults. Coulobre's default pool allows two workers. + +The upload setting applies per file. The pool sets the maximum POST body to +one MiB above the chosen upload size. When both limits are set, choose a memory +limit at least one MiB higher than the upload size. The timeout applies to PHP +execution and the time PHP-FPM spends serving the request. Apache, reverse +proxies, and PHP input limits can impose their own shorter limits. +[PHP upload directives](https://www.php.net/manual/en/ini.core.php) ยท +[PHP-FPM pool directives](https://www.php.net/manual/en/install.fpm.configuration.php) + +The web activation worker tests the pool configuration and reloads PHP-FPM +before reporting success. Reload the account page to see the last applied +values and the result of the current request. + ### Serve additional hostnames on a website After activating a website, use **Add alias** on the hosting account. diff --git a/docs/development.md b/docs/development.md index 9867465..a20dd3d 100644 --- a/docs/development.md +++ b/docs/development.md @@ -39,6 +39,10 @@ Set **Website storage limit (MiB)** to supply the initial value when an operator applies a website quota from the account page. [Apply a website storage limit](#apply-a-website-storage-limit) +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 +account page. See [website PHP settings](deployment.md#configure-php-per-website). + Changing or reassigning a plan preserves existing databases and mailboxes. If the new limit is at or below current usage, the panel blocks additional requests of that type. Changing the plan's storage limit applies to new