|
@@ -130,8 +130,8 @@ events.mechanism = epoll
|
|
; Unix user/group of processes
|
|
; Unix user/group of processes
|
|
; Note: The user is mandatory. If the group is not set, the default user's group
|
|
; Note: The user is mandatory. If the group is not set, the default user's group
|
|
; will be used.
|
|
; will be used.
|
|
-user = www-data
|
|
|
|
-group = www-data
|
|
|
|
|
|
+user = {{ fpm_user }}
|
|
|
|
+group = {{ fpm_group }}
|
|
|
|
|
|
; The address on which to accept FastCGI requests.
|
|
; The address on which to accept FastCGI requests.
|
|
; Valid syntaxes are:
|
|
; Valid syntaxes are:
|
|
@@ -199,22 +199,22 @@ pm = dynamic
|
|
; forget to tweak pm.* to fit your needs.
|
|
; forget to tweak pm.* to fit your needs.
|
|
; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
|
|
; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
|
|
; Note: This value is mandatory.
|
|
; Note: This value is mandatory.
|
|
-pm.max_children = 50
|
|
|
|
|
|
+pm.max_children = {{ fpm_max_children }}
|
|
|
|
|
|
; The number of child processes created on startup.
|
|
; The number of child processes created on startup.
|
|
; Note: Used only when pm is set to 'dynamic'
|
|
; Note: Used only when pm is set to 'dynamic'
|
|
; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2
|
|
; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2
|
|
-pm.start_servers = 15
|
|
|
|
|
|
+; pm.start_servers =
|
|
|
|
|
|
; The desired minimum number of idle server processes.
|
|
; The desired minimum number of idle server processes.
|
|
; Note: Used only when pm is set to 'dynamic'
|
|
; Note: Used only when pm is set to 'dynamic'
|
|
; Note: Mandatory when pm is set to 'dynamic'
|
|
; Note: Mandatory when pm is set to 'dynamic'
|
|
-pm.min_spare_servers = 5
|
|
|
|
|
|
+pm.min_spare_servers = {{ fpm_min_spare_servers }}
|
|
|
|
|
|
; The desired maximum number of idle server processes.
|
|
; The desired maximum number of idle server processes.
|
|
; Note: Used only when pm is set to 'dynamic'
|
|
; Note: Used only when pm is set to 'dynamic'
|
|
; Note: Mandatory when pm is set to 'dynamic'
|
|
; Note: Mandatory when pm is set to 'dynamic'
|
|
-pm.max_spare_servers = 30
|
|
|
|
|
|
+pm.max_spare_servers = {{ fpm_max_spare_servers }}
|
|
|
|
|
|
; The number of seconds after which an idle process will be killed.
|
|
; The number of seconds after which an idle process will be killed.
|
|
; Note: Used only when pm is set to 'ondemand'
|
|
; Note: Used only when pm is set to 'ondemand'
|
|
@@ -225,7 +225,7 @@ pm.max_spare_servers = 30
|
|
; This can be useful to work around memory leaks in 3rd party libraries. For
|
|
; This can be useful to work around memory leaks in 3rd party libraries. For
|
|
; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
|
|
; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
|
|
; Default Value: 0
|
|
; Default Value: 0
|
|
-pm.max_requests = 100
|
|
|
|
|
|
+pm.max_requests = 200
|
|
|
|
|
|
; The URI to view the FPM status page. If this value is not set, no URI will be
|
|
; The URI to view the FPM status page. If this value is not set, no URI will be
|
|
; recognized as a status page. It shows the following informations:
|
|
; recognized as a status page. It shows the following informations:
|
|
@@ -494,17 +494,6 @@ catch_workers_output = yes
|
|
;php_admin_value[error_log] = /var/log/fpm-php.www.log
|
|
;php_admin_value[error_log] = /var/log/fpm-php.www.log
|
|
;php_admin_flag[log_errors] = on
|
|
;php_admin_flag[log_errors] = on
|
|
;php_admin_value[memory_limit] = 32M
|
|
;php_admin_value[memory_limit] = 32M
|
|
-php_admin_value[cgi.fix_pathinfo] = 0
|
|
|
|
-php_admin_flag[short_open_tag] = off
|
|
|
|
-php_admin_flag[expose_php] = off
|
|
|
|
-php_admin_value[max_execution_time] = 30
|
|
|
|
-php_admin_value[memory_limit] = 32M
|
|
|
|
-php_admin_flag[display_errors] = off
|
|
|
|
-php_admin_flag[display_startup_errors] = on
|
|
|
|
-php_admin_flag[log_errors] = on
|
|
|
|
-php_admin_flag[html_errors] = off
|
|
|
|
-php_admin_value[error_log] = syslog
|
|
|
|
-php_admin_value[date.timezone] = Europe/Paris
|
|
|
|
|
|
|
|
{% endfor %}
|
|
{% endfor %}
|
|
|
|
|