Skip to content

Commit b9956b0

Browse files
documentation
1 parent dac07a3 commit b9956b0

1 file changed

Lines changed: 32 additions & 2 deletions

File tree

docs/4.x/sites/settings.md

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
## Introduction
44

5-
In the Settings page you can manage your site's details, its PHP version, web directory, vhost
6-
template, basic auth, and more.
5+
In the Settings page you can manage your site's details, its PHP version and PHP settings, web
6+
directory, vhost template, basic auth, and more.
77

88
## Site details
99

@@ -18,6 +18,36 @@ You can change the PHP version of each website in their Settings page.
1818
Make sure that the PHP version you want to use is already installed in the [PHP](../servers/php#install-and-uninstall)
1919
page.
2020

21+
## Configure PHP Settings
22+
23+
For PHP sites you can tune common per-site PHP runtime limits without editing any files. Click
24+
**Configure** next to the PHP version on the Settings page to set:
25+
26+
- **Max upload size** — the largest file that can be uploaded (MB).
27+
- **Max execution time** — how long a request may run (seconds).
28+
- **Memory limit** — the maximum memory a request may use (MB).
29+
- **Max input vars** — the maximum number of input variables, e.g. form fields.
30+
31+
Leave a field empty to use the server's default. Vito applies these to the site's vhost (via FastCGI
32+
`PHP_VALUE`, together with `client_max_body_size`/`fastcgi_read_timeout` on nginx and `request_body`
33+
on Caddy), so they take effect for requests served through nginx/Caddy and are preserved across
34+
deployments. They do not affect the PHP CLI.
35+
36+
Where a value is left unset, the server default applies. PHP defaults to 2 MB uploads, a 30s
37+
execution time, a 128 MB memory limit, and 1000 input vars; on nginx, requests are additionally
38+
capped at 1 MB (body size) and 60s until you raise them here.
39+
40+
:::tip
41+
These settings are per-site. PHP-FPM process pools are shared per system user, so process-manager
42+
tuning (such as `pm.max_children`) is not configured here.
43+
:::
44+
45+
:::warning
46+
Configuration is available only for PHP sites that use automatic vhost generation and the default
47+
vhost template. If you use a custom vhost template, add the directives to your template manually — a
48+
banner warns you when stored PHP settings cannot be applied.
49+
:::
50+
2151
## Change branch
2252

2353
You can change the branch of your cloned repository in the Settings page.

0 commit comments

Comments
 (0)