annotate modules/website/files/php-fpm-www.conf @ 400:f354100b688a

Switch to Ubuntu-standard PHP FPM socket dir Ubuntu puts /tmp and /run on tmpfs, which gets wiped each reboot. While these directories *can* be nuked, they aren't on other platforms. Using the old paths, Puppet had to recreate the directory each boot. Using the new paths, Ubuntu handles creation within the systemd config. CentOS should just create once, migrate and work.
author IBBoard <dev@ibboard.co.uk>
date Wed, 20 Apr 2022 19:11:39 +0100
parents bcb54d9853e1
children 3744cd0807cb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
357
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1 ; Start a new pool named 'www'.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2 ; the variable $pool can be used in any directive and will be replaced by the
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3 ; pool name ('www' here)
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
4 [www]
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
5
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
6 ; Per pool prefix
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
7 ; It only applies on the following directives:
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
8 ; - 'access.log'
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
9 ; - 'slowlog'
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
10 ; - 'listen' (unixsocket)
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
11 ; - 'chroot'
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
12 ; - 'chdir'
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
13 ; - 'php_values'
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
14 ; - 'php_admin_values'
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
15 ; When not set, the global prefix (or @php_fpm_prefix@) applies instead.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
16 ; Note: This directive can also be relative to the global prefix.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
17 ; Default Value: none
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
18 ;prefix = /path/to/pools/$pool
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
19
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
20 ; Unix user/group of processes
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
21 ; Note: The user is mandatory. If the group is not set, the default user's group
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
22 ; will be used.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
23 ; RPM: apache user chosen to provide access to the same directories as httpd
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
24 user = apache
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
25 ; RPM: Keep a group allowed to write in log dir.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
26 group = apache
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
27
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
28 ; The address on which to accept FastCGI requests.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
29 ; Valid syntaxes are:
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
30 ; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific IPv4 address on
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
31 ; a specific port;
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
32 ; '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
33 ; a specific port;
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
34 ; 'port' - to listen on a TCP socket to all addresses
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
35 ; (IPv6 and IPv4-mapped) on a specific port;
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
36 ; '/path/to/unix/socket' - to listen on a unix socket.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
37 ; Note: This value is mandatory.
400
f354100b688a Switch to Ubuntu-standard PHP FPM socket dir
IBBoard <dev@ibboard.co.uk>
parents: 367
diff changeset
38 listen = /run/php/php-fpm.sock
357
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
39
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
40 ; Set listen(2) backlog.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
41 ; Default Value: 511
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
42 ;listen.backlog = 511
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
43
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
44 ; Set permissions for unix socket, if one is used. In Linux, read/write
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
45 ; permissions must be set in order to allow connections from a web server.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
46 ; Default Values: user and group are set as the running user
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
47 ; mode is set to 0660
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
48 ;listen.owner = nobody
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
49 ;listen.group = nobody
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
50 ;listen.mode = 0660
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
51
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
52 ; When POSIX Access Control Lists are supported you can set them using
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
53 ; these options, value is a comma separated list of user/group names.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
54 ; When set, listen.owner and listen.group are ignored
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
55 listen.acl_users = apache,nginx
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
56 ;listen.acl_groups =
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
57
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
58 ; List of addresses (IPv4/IPv6) of FastCGI clients which are allowed to connect.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
59 ; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
60 ; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
61 ; must be separated by a comma. If this value is left blank, connections will be
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
62 ; accepted from any ip address.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
63 ; Default Value: any
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
64 listen.allowed_clients = 127.0.0.1
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
65
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
66 ; Specify the nice(2) priority to apply to the pool processes (only if set)
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
67 ; The value can vary from -19 (highest priority) to 20 (lower priority)
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
68 ; Note: - It will only work if the FPM master process is launched as root
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
69 ; - The pool processes will inherit the master process priority
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
70 ; unless it specified otherwise
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
71 ; Default Value: no set
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
72 ; process.priority = -19
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
73
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
74 ; Set the process dumpable flag (PR_SET_DUMPABLE prctl) even if the process user
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
75 ; or group is differrent than the master process user. It allows to create process
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
76 ; core dump and ptrace the process for the pool user.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
77 ; Default Value: no
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
78 ; process.dumpable = yes
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
79
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
80 ; Choose how the process manager will control the number of child processes.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
81 ; Possible Values:
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
82 ; static - a fixed number (pm.max_children) of child processes;
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
83 ; dynamic - the number of child processes are set dynamically based on the
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
84 ; following directives. With this process management, there will be
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
85 ; always at least 1 children.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
86 ; pm.max_children - the maximum number of children that can
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
87 ; be alive at the same time.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
88 ; pm.start_servers - the number of children created on startup.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
89 ; pm.min_spare_servers - the minimum number of children in 'idle'
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
90 ; state (waiting to process). If the number
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
91 ; of 'idle' processes is less than this
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
92 ; number then some children will be created.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
93 ; pm.max_spare_servers - the maximum number of children in 'idle'
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
94 ; state (waiting to process). If the number
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
95 ; of 'idle' processes is greater than this
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
96 ; number then some children will be killed.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
97 ; ondemand - no children are created at startup. Children will be forked when
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
98 ; new requests will connect. The following parameter are used:
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
99 ; pm.max_children - the maximum number of children that
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
100 ; can be alive at the same time.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
101 ; pm.process_idle_timeout - The number of seconds after which
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
102 ; an idle process will be killed.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
103 ; Note: This value is mandatory.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
104 pm = dynamic
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
105
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
106 ; The number of child processes to be created when pm is set to 'static' and the
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
107 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
108 ; This value sets the limit on the number of simultaneous requests that will be
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
109 ; served. Equivalent to the ApacheMaxClients directive with mpm_prefork.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
110 ; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
111 ; CGI. The below defaults are based on a server without much resources. Don't
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
112 ; forget to tweak pm.* to fit your needs.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
113 ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
114 ; Note: This value is mandatory.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
115 pm.max_children = 50
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
116
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
117 ; The number of child processes created on startup.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
118 ; Note: Used only when pm is set to 'dynamic'
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
119 ; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
120 pm.start_servers = 5
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
121
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
122 ; The desired minimum number of idle server processes.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
123 ; Note: Used only when pm is set to 'dynamic'
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
124 ; Note: Mandatory when pm is set to 'dynamic'
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
125 pm.min_spare_servers = 5
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
126
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
127 ; The desired maximum number of idle server processes.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
128 ; Note: Used only when pm is set to 'dynamic'
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
129 ; Note: Mandatory when pm is set to 'dynamic'
363
da783c06ab40 Quiet sites don't need 35 spare PHP servers!
IBBoard <dev@ibboard.co.uk>
parents: 358
diff changeset
130 pm.max_spare_servers = 10
357
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
131
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
132 ; The number of seconds after which an idle process will be killed.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
133 ; Note: Used only when pm is set to 'ondemand'
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
134 ; Default Value: 10s
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
135 ;pm.process_idle_timeout = 10s;
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
136
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
137 ; The number of requests each child process should execute before respawning.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
138 ; This can be useful to work around memory leaks in 3rd party libraries. For
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
139 ; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
140 ; Default Value: 0
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
141 ;pm.max_requests = 500
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
142
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
143 ; The URI to view the FPM status page. If this value is not set, no URI will be
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
144 ; recognized as a status page. It shows the following informations:
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
145 ; pool - the name of the pool;
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
146 ; process manager - static, dynamic or ondemand;
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
147 ; start time - the date and time FPM has started;
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
148 ; start since - number of seconds since FPM has started;
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
149 ; accepted conn - the number of request accepted by the pool;
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
150 ; listen queue - the number of request in the queue of pending
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
151 ; connections (see backlog in listen(2));
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
152 ; max listen queue - the maximum number of requests in the queue
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
153 ; of pending connections since FPM has started;
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
154 ; listen queue len - the size of the socket queue of pending connections;
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
155 ; idle processes - the number of idle processes;
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
156 ; active processes - the number of active processes;
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
157 ; total processes - the number of idle + active processes;
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
158 ; max active processes - the maximum number of active processes since FPM
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
159 ; has started;
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
160 ; max children reached - number of times, the process limit has been reached,
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
161 ; when pm tries to start more children (works only for
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
162 ; pm 'dynamic' and 'ondemand');
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
163 ; Value are updated in real time.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
164 ; Example output:
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
165 ; pool: www
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
166 ; process manager: static
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
167 ; start time: 01/Jul/2011:17:53:49 +0200
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
168 ; start since: 62636
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
169 ; accepted conn: 190460
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
170 ; listen queue: 0
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
171 ; max listen queue: 1
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
172 ; listen queue len: 42
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
173 ; idle processes: 4
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
174 ; active processes: 11
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
175 ; total processes: 15
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
176 ; max active processes: 12
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
177 ; max children reached: 0
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
178 ;
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
179 ; By default the status page output is formatted as text/plain. Passing either
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
180 ; 'html', 'xml' or 'json' in the query string will return the corresponding
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
181 ; output syntax. Example:
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
182 ; http://www.foo.bar/status
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
183 ; http://www.foo.bar/status?json
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
184 ; http://www.foo.bar/status?html
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
185 ; http://www.foo.bar/status?xml
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
186 ;
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
187 ; By default the status page only outputs short status. Passing 'full' in the
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
188 ; query string will also return status for each pool process.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
189 ; Example:
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
190 ; http://www.foo.bar/status?full
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
191 ; http://www.foo.bar/status?json&full
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
192 ; http://www.foo.bar/status?html&full
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
193 ; http://www.foo.bar/status?xml&full
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
194 ; The Full status returns for each process:
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
195 ; pid - the PID of the process;
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
196 ; state - the state of the process (Idle, Running, ...);
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
197 ; start time - the date and time the process has started;
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
198 ; start since - the number of seconds since the process has started;
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
199 ; requests - the number of requests the process has served;
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
200 ; request duration - the duration in µs of the requests;
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
201 ; request method - the request method (GET, POST, ...);
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
202 ; request URI - the request URI with the query string;
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
203 ; content length - the content length of the request (only with POST);
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
204 ; user - the user (PHP_AUTH_USER) (or '-' if not set);
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
205 ; script - the main script called (or '-' if not set);
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
206 ; last request cpu - the %cpu the last request consumed
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
207 ; it's always 0 if the process is not in Idle state
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
208 ; because CPU calculation is done when the request
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
209 ; processing has terminated;
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
210 ; last request memory - the max amount of memory the last request consumed
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
211 ; it's always 0 if the process is not in Idle state
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
212 ; because memory calculation is done when the request
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
213 ; processing has terminated;
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
214 ; If the process is in Idle state, then informations are related to the
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
215 ; last request the process has served. Otherwise informations are related to
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
216 ; the current request being served.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
217 ; Example output:
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
218 ; ************************
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
219 ; pid: 31330
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
220 ; state: Running
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
221 ; start time: 01/Jul/2011:17:53:49 +0200
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
222 ; start since: 63087
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
223 ; requests: 12808
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
224 ; request duration: 1250261
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
225 ; request method: GET
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
226 ; request URI: /test_mem.php?N=10000
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
227 ; content length: 0
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
228 ; user: -
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
229 ; script: /home/fat/web/docs/php/test_mem.php
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
230 ; last request cpu: 0.00
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
231 ; last request memory: 0
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
232 ;
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
233 ; Note: There is a real-time FPM status monitoring sample web page available
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
234 ; It's available in: @EXPANDED_DATADIR@/fpm/status.html
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
235 ;
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
236 ; Note: The value must start with a leading slash (/). The value can be
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
237 ; anything, but it may not be a good idea to use the .php extension or it
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
238 ; may conflict with a real PHP file.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
239 ; Default Value: not set
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
240 ;pm.status_path = /status
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
241
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
242 ; The ping URI to call the monitoring page of FPM. If this value is not set, no
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
243 ; URI will be recognized as a ping page. This could be used to test from outside
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
244 ; that FPM is alive and responding, or to
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
245 ; - create a graph of FPM availability (rrd or such);
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
246 ; - remove a server from a group if it is not responding (load balancing);
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
247 ; - trigger alerts for the operating team (24/7).
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
248 ; Note: The value must start with a leading slash (/). The value can be
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
249 ; anything, but it may not be a good idea to use the .php extension or it
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
250 ; may conflict with a real PHP file.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
251 ; Default Value: not set
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
252 ;ping.path = /ping
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
253
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
254 ; This directive may be used to customize the response of a ping request. The
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
255 ; response is formatted as text/plain with a 200 response code.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
256 ; Default Value: pong
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
257 ;ping.response = pong
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
258
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
259 ; The access log file
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
260 ; Default: not set
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
261 ;access.log = log/$pool.access.log
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
262
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
263 ; The access log format.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
264 ; The following syntax is allowed
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
265 ; %%: the '%' character
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
266 ; %C: %CPU used by the request
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
267 ; it can accept the following format:
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
268 ; - %{user}C for user CPU only
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
269 ; - %{system}C for system CPU only
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
270 ; - %{total}C for user + system CPU (default)
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
271 ; %d: time taken to serve the request
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
272 ; it can accept the following format:
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
273 ; - %{seconds}d (default)
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
274 ; - %{miliseconds}d
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
275 ; - %{mili}d
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
276 ; - %{microseconds}d
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
277 ; - %{micro}d
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
278 ; %e: an environment variable (same as $_ENV or $_SERVER)
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
279 ; it must be associated with embraces to specify the name of the env
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
280 ; variable. Some exemples:
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
281 ; - server specifics like: %{REQUEST_METHOD}e or %{SERVER_PROTOCOL}e
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
282 ; - HTTP headers like: %{HTTP_HOST}e or %{HTTP_USER_AGENT}e
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
283 ; %f: script filename
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
284 ; %l: content-length of the request (for POST request only)
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
285 ; %m: request method
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
286 ; %M: peak of memory allocated by PHP
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
287 ; it can accept the following format:
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
288 ; - %{bytes}M (default)
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
289 ; - %{kilobytes}M
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
290 ; - %{kilo}M
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
291 ; - %{megabytes}M
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
292 ; - %{mega}M
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
293 ; %n: pool name
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
294 ; %o: output header
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
295 ; it must be associated with embraces to specify the name of the header:
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
296 ; - %{Content-Type}o
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
297 ; - %{X-Powered-By}o
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
298 ; - %{Transfert-Encoding}o
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
299 ; - ....
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
300 ; %p: PID of the child that serviced the request
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
301 ; %P: PID of the parent of the child that serviced the request
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
302 ; %q: the query string
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
303 ; %Q: the '?' character if query string exists
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
304 ; %r: the request URI (without the query string, see %q and %Q)
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
305 ; %R: remote IP address
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
306 ; %s: status (response code)
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
307 ; %t: server time the request was received
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
308 ; it can accept a strftime(3) format:
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
309 ; %d/%b/%Y:%H:%M:%S %z (default)
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
310 ; The strftime(3) format must be encapsuled in a %{<strftime_format>}t tag
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
311 ; e.g. for a ISO8601 formatted timestring, use: %{%Y-%m-%dT%H:%M:%S%z}t
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
312 ; %T: time the log has been written (the request has finished)
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
313 ; it can accept a strftime(3) format:
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
314 ; %d/%b/%Y:%H:%M:%S %z (default)
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
315 ; The strftime(3) format must be encapsuled in a %{<strftime_format>}t tag
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
316 ; e.g. for a ISO8601 formatted timestring, use: %{%Y-%m-%dT%H:%M:%S%z}t
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
317 ; %u: remote user
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
318 ;
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
319 ; Default: "%R - %u %t \"%m %r\" %s"
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
320 ;access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo}M %C%%"
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
321
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
322 ; The log file for slow requests
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
323 ; Default Value: not set
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
324 ; Note: slowlog is mandatory if request_slowlog_timeout is set
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
325 slowlog = /var/log/php-fpm/www-slow.log
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
326
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
327 ; The timeout for serving a single request after which a PHP backtrace will be
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
328 ; dumped to the 'slowlog' file. A value of '0s' means 'off'.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
329 ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
330 ; Default Value: 0
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
331 ;request_slowlog_timeout = 0
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
332
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
333 ; Depth of slow log stack trace.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
334 ; Default Value: 20
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
335 ;request_slowlog_trace_depth = 20
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
336
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
337 ; The timeout for serving a single request after which the worker process will
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
338 ; be killed. This option should be used when the 'max_execution_time' ini option
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
339 ; does not stop script execution for some reason. A value of '0' means 'off'.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
340 ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
341 ; Default Value: 0
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
342 ;request_terminate_timeout = 0
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
343
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
344 ; Set open file descriptor rlimit.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
345 ; Default Value: system defined value
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
346 ;rlimit_files = 1024
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
347
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
348 ; Set max core size rlimit.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
349 ; Possible Values: 'unlimited' or an integer greater or equal to 0
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
350 ; Default Value: system defined value
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
351 ;rlimit_core = 0
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
352
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
353 ; Chroot to this directory at the start. This value must be defined as an
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
354 ; absolute path. When this value is not set, chroot is not used.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
355 ; Note: you can prefix with '$prefix' to chroot to the pool prefix or one
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
356 ; of its subdirectories. If the pool prefix is not set, the global prefix
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
357 ; will be used instead.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
358 ; Note: chrooting is a great security feature and should be used whenever
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
359 ; possible. However, all PHP paths will be relative to the chroot
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
360 ; (error_log, sessions.save_path, ...).
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
361 ; Default Value: not set
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
362 ;chroot =
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
363
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
364 ; Chdir to this directory at the start.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
365 ; Note: relative path can be used.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
366 ; Default Value: current directory or / when chroot
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
367 ;chdir = /var/www
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
368
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
369 ; Redirect worker stdout and stderr into main error log. If not set, stdout and
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
370 ; stderr will be redirected to /dev/null according to FastCGI specs.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
371 ; Note: on highloaded environement, this can cause some delay in the page
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
372 ; process time (several ms).
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
373 ; Default Value: no
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
374 ;catch_workers_output = yes
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
375
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
376 ; Clear environment in FPM workers
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
377 ; Prevents arbitrary environment variables from reaching FPM worker processes
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
378 ; by clearing the environment in workers before env vars specified in this
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
379 ; pool configuration are added.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
380 ; Setting to "no" will make all environment variables available to PHP code
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
381 ; via getenv(), $_ENV and $_SERVER.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
382 ; Default Value: yes
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
383 ;clear_env = no
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
384
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
385 ; Limits the extensions of the main script FPM will allow to parse. This can
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
386 ; prevent configuration mistakes on the web server side. You should only limit
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
387 ; FPM to .php extensions to prevent malicious users to use other extensions to
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
388 ; execute php code.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
389 ; Note: set an empty value to allow all extensions.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
390 ; Default Value: .php
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
391 ;security.limit_extensions = .php .php3 .php4 .php5 .php7
358
6c29af16b177 Fix PHP-as-html file serving
IBBoard <dev@ibboard.co.uk>
parents: 357
diff changeset
392 security.limit_extensions = .php .html
357
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
393
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
394 ; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
395 ; the current environment.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
396 ; Default Value: clean env
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
397 ;env[HOSTNAME] = $HOSTNAME
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
398 ;env[PATH] = /usr/local/bin:/usr/bin:/bin
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
399 ;env[TMP] = /tmp
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
400 ;env[TMPDIR] = /tmp
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
401 ;env[TEMP] = /tmp
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
402
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
403 ; Additional php.ini defines, specific to this pool of workers. These settings
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
404 ; overwrite the values previously defined in the php.ini. The directives are the
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
405 ; same as the PHP SAPI:
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
406 ; php_value/php_flag - you can set classic ini defines which can
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
407 ; be overwritten from PHP call 'ini_set'.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
408 ; php_admin_value/php_admin_flag - these directives won't be overwritten by
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
409 ; PHP call 'ini_set'
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
410 ; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
411
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
412 ; Defining 'extension' will load the corresponding shared extension from
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
413 ; extension_dir. Defining 'disable_functions' or 'disable_classes' will not
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
414 ; overwrite previously defined php.ini values, but will append the new value
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
415 ; instead.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
416
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
417 ; Note: path INI options can be relative and will be expanded with the prefix
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
418 ; (pool, global or @prefix@)
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
419
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
420 ; Default Value: nothing is defined by default except the values in php.ini and
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
421 ; specified at startup with the -d argument
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
422 ;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
423 ;php_flag[display_errors] = off
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
424 php_admin_value[error_log] = /var/log/php-fpm/www-error.log
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
425 php_admin_flag[log_errors] = on
367
bcb54d9853e1 Increase memory limit so NextCloud can upgrade
IBBoard <dev@ibboard.co.uk>
parents: 363
diff changeset
426 php_admin_value[memory_limit] = 256M
357
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
427
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
428 ; Set the following data paths to directories owned by the FPM process user.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
429 ;
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
430 ; Do not change the ownership of existing system directories, if the process
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
431 ; user does not have write permission, create dedicated directories for this
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
432 ; purpose.
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
433 ;
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
434 ; See warning about choosing the location of these directories on your system
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
435 ; at http://php.net/session.save-path
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
436 php_value[session.save_handler] = files
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
437 php_value[session.save_path] = /var/lib/php/session
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
438 php_value[soap.wsdl_cache_dir] = /var/lib/php/wsdlcache
ff228d581972 Reconfigure PHP-FPM to run from a Unix socket
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
439 ;php_value[opcache.file_cache] = /var/lib/php/opcache