|
| 1 | +; ############################################################ |
| 2 | +; Devilbox php-fpm.conf: Current default settings |
| 3 | +; ############################################################ |
| 4 | +; |
| 5 | +; Information |
| 6 | +; ----------- |
| 7 | +; * Do not edit this file (it belongs to git) |
| 8 | +; * This file shows example settings that are currently effective |
| 9 | +; * If this file is enabled, nothing will change as it reflects the current default settings |
| 10 | +; |
| 11 | +; How to enable? |
| 12 | +; -------------- |
| 13 | +; * Copy this file to another file with ".conf" extension |
| 14 | +; * Only files with ".conf" extensions will be applied by PHP-FPM |
| 15 | + |
| 16 | + |
| 17 | +; ### |
| 18 | +; ### PHP-FPM global settings |
| 19 | +; ### |
| 20 | +; |
| 21 | +[global] |
| 22 | + |
| 23 | +; Error log level. Possible values: alert, error, warning, notice, debug. Default value: notice. |
| 24 | +log_level = notice |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | +; ### |
| 29 | +; ### Pool configuratoin |
| 30 | +; ### |
| 31 | + |
| 32 | +[www] |
| 33 | + |
| 34 | +; The timeout for serving a single request after which the worker process will be killed. |
| 35 | +; This option should be used when the 'max_execution_time' ini option does not stop script |
| 36 | +; execution for some reason. |
| 37 | +request_terminate_timeout = 120s |
| 38 | + |
| 39 | + |
| 40 | +; A maximum of backlog incoming connections will be queued for processing. |
| 41 | +; If a connection request arrives with the queue full the client may receive an error with an |
| 42 | +; indication of ECONNREFUSED, or, if the underlying protocol supports retransmission, |
| 43 | +; the request may be ignored so that retries may succeed. |
| 44 | +; This should not be greater than `cat /proc/sys/net/core/somaxconn`, otherwise connections |
| 45 | +; are silently truncated |
| 46 | +listen.backlog = 1024 |
| 47 | + |
| 48 | + |
| 49 | +; static - the number of child processes is fixed (pm.max_children). |
| 50 | +; |
| 51 | +; dynamic - the number of child processes is set dynamically based on the following directives: |
| 52 | +; pm.max_children, pm.start_servers, pm.min_spare_servers, pm.max_spare_servers. |
| 53 | +; |
| 54 | +; ondemand - the processes spawn on demand (when requested, as opposed to dynamic, where |
| 55 | +; pm.start_servers are started when the service is started. |
| 56 | +pm = ondemand |
| 57 | + |
| 58 | +; The maximum number of child processes to be created |
| 59 | +pm.max_children = 50 |
| 60 | + |
| 61 | +; The number of child processes created on startup. Used only when pm is set to dynamic. |
| 62 | +; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2. |
| 63 | +pm.start_servers = 4 |
| 64 | + |
| 65 | +; The desired minimum number of idle server processes. |
| 66 | +pm.min_spare_servers = 2 |
| 67 | + |
| 68 | +; The desired maximum number of idle server processes. |
| 69 | +pm.max_spare_servers = 6 |
| 70 | + |
| 71 | +; The number of requests each child process should execute before respawning. |
| 72 | +; This can be useful to work around memory leaks in 3rd party libraries. |
| 73 | +; For endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS. |
| 74 | +; Default value: 0. |
| 75 | +pm.max_requests = 500 |
| 76 | + |
| 77 | +; The number of seconds after which an idle process will be killed. Used only when pm is set to ondemand |
| 78 | +pm.process_idle_timeout = 10s |
| 79 | + |
| 80 | +; vim: set ft=dosini: |
0 commit comments