roles/php-fpm: Import config changes for PHP 7.4
This commit is contained in:
parent
057e98ab47
commit
7f5499c307
@ -959,7 +959,9 @@ cli_server.color = On
|
|||||||
[Date]
|
[Date]
|
||||||
; Defines the default timezone used by the date functions
|
; Defines the default timezone used by the date functions
|
||||||
; http://php.net/date.timezone
|
; http://php.net/date.timezone
|
||||||
;date.timezone =
|
{% if timezone is defined %}
|
||||||
|
date.timezone = {{ timezone }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
; http://php.net/date.default-latitude
|
; http://php.net/date.default-latitude
|
||||||
;date.default_latitude = 31.7667
|
;date.default_latitude = 31.7667
|
||||||
@ -1765,20 +1767,20 @@ ldap.max_links = -1
|
|||||||
|
|
||||||
[opcache]
|
[opcache]
|
||||||
; Determines if Zend OPCache is enabled
|
; Determines if Zend OPCache is enabled
|
||||||
;opcache.enable=1
|
opcache.enable={{ opcache_enable }}
|
||||||
|
|
||||||
; Determines if Zend OPCache is enabled for the CLI version of PHP
|
; Determines if Zend OPCache is enabled for the CLI version of PHP
|
||||||
;opcache.enable_cli=0
|
opcache.enable_cli={{ opcache_enable_cli }}
|
||||||
|
|
||||||
; The OPcache shared memory storage size.
|
; The OPcache shared memory storage size.
|
||||||
;opcache.memory_consumption=128
|
opcache.memory_consumption={{ opcache_memory_consumption }}
|
||||||
|
|
||||||
; The amount of memory for interned strings in Mbytes.
|
; The amount of memory for interned strings in Mbytes.
|
||||||
;opcache.interned_strings_buffer=8
|
opcache.interned_strings_buffer={{ opcache_interned_strings_buffer }}
|
||||||
|
|
||||||
; The maximum number of keys (scripts) in the OPcache hash table.
|
; The maximum number of keys (scripts) in the OPcache hash table.
|
||||||
; Only numbers between 200 and 1000000 are allowed.
|
; Only numbers between 200 and 1000000 are allowed.
|
||||||
;opcache.max_accelerated_files=10000
|
opcache.max_accelerated_files={{ opcache_max_accelerated_files }}
|
||||||
|
|
||||||
; The maximum percentage of "wasted" memory until a restart is scheduled.
|
; The maximum percentage of "wasted" memory until a restart is scheduled.
|
||||||
;opcache.max_wasted_percentage=5
|
;opcache.max_wasted_percentage=5
|
||||||
@ -1787,23 +1789,23 @@ ldap.max_links = -1
|
|||||||
; directory to the script key, thus eliminating possible collisions between
|
; directory to the script key, thus eliminating possible collisions between
|
||||||
; files with the same name (basename). Disabling the directive improves
|
; files with the same name (basename). Disabling the directive improves
|
||||||
; performance, but may break existing applications.
|
; performance, but may break existing applications.
|
||||||
;opcache.use_cwd=1
|
opcache.use_cwd={{ opcache_use_cwd }}
|
||||||
|
|
||||||
; When disabled, you must reset the OPcache manually or restart the
|
; When disabled, you must reset the OPcache manually or restart the
|
||||||
; webserver for changes to the filesystem to take effect.
|
; webserver for changes to the filesystem to take effect.
|
||||||
;opcache.validate_timestamps=1
|
opcache.validate_timestamps={{ opcache_validate_timestamps }}
|
||||||
|
|
||||||
; How often (in seconds) to check file timestamps for changes to the shared
|
; How often (in seconds) to check file timestamps for changes to the shared
|
||||||
; memory storage allocation. ("1" means validate once per second, but only
|
; memory storage allocation. ("1" means validate once per second, but only
|
||||||
; once per request. "0" means always validate)
|
; once per request. "0" means always validate)
|
||||||
;opcache.revalidate_freq=2
|
opcache.revalidate_freq={{ opcache_revalidate_freq }}
|
||||||
|
|
||||||
; Enables or disables file search in include_path optimization
|
; Enables or disables file search in include_path optimization
|
||||||
;opcache.revalidate_path=0
|
;opcache.revalidate_path=0
|
||||||
|
|
||||||
; If disabled, all PHPDoc comments are dropped from the code to reduce the
|
; If disabled, all PHPDoc comments are dropped from the code to reduce the
|
||||||
; size of the optimized code.
|
; size of the optimized code.
|
||||||
;opcache.save_comments=1
|
opcache.save_comments={{ opcache_save_comments }}
|
||||||
|
|
||||||
; Allow file existence override (file_exists, etc.) performance feature.
|
; Allow file existence override (file_exists, etc.) performance feature.
|
||||||
;opcache.enable_file_override=0
|
;opcache.enable_file_override=0
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
; Start a new pool named 'www'.
|
{% set domain_name = item.domain_name %}
|
||||||
|
|
||||||
|
; Start a new pool named '{{ domain_name }}'.
|
||||||
; the variable $pool can be used in any directive and will be replaced by the
|
; the variable $pool can be used in any directive and will be replaced by the
|
||||||
; pool name ('www' here)
|
; pool name ('{{ domain_name }}' here)
|
||||||
[www]
|
[{{ domain_name }}]
|
||||||
|
|
||||||
; Per pool prefix
|
; Per pool prefix
|
||||||
; It only applies on the following directives:
|
; It only applies on the following directives:
|
||||||
@ -20,8 +22,8 @@
|
|||||||
; 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
|
user = nginx
|
||||||
group = www-data
|
group = nginx
|
||||||
|
|
||||||
; The address on which to accept FastCGI requests.
|
; The address on which to accept FastCGI requests.
|
||||||
; Valid syntaxes are:
|
; Valid syntaxes are:
|
||||||
@ -33,7 +35,7 @@ group = www-data
|
|||||||
; (IPv6 and IPv4-mapped) on a specific port;
|
; (IPv6 and IPv4-mapped) on a specific port;
|
||||||
; '/path/to/unix/socket' - to listen on a unix socket.
|
; '/path/to/unix/socket' - to listen on a unix socket.
|
||||||
; Note: This value is mandatory.
|
; Note: This value is mandatory.
|
||||||
listen = /run/php/php7.4-fpm.sock
|
listen = /run/php/php7.4-fpm-{{ domain_name }}.sock
|
||||||
|
|
||||||
; Set listen(2) backlog.
|
; Set listen(2) backlog.
|
||||||
; Default Value: 511 (-1 on FreeBSD and OpenBSD)
|
; Default Value: 511 (-1 on FreeBSD and OpenBSD)
|
||||||
@ -304,14 +306,10 @@ pm.max_spare_servers = 3
|
|||||||
; %s: status (response code)
|
; %s: status (response code)
|
||||||
; %t: server time the request was received
|
; %t: server time the request was received
|
||||||
; it can accept a strftime(3) format:
|
; it can accept a strftime(3) format:
|
||||||
; %d/%b/%Y:%H:%M:%S %z (default)
|
|
||||||
; The strftime(3) format must be encapsuled in a %{<strftime_format>}t tag
|
; The strftime(3) format must be encapsuled in a %{<strftime_format>}t tag
|
||||||
; e.g. for a ISO8601 formatted timestring, use: %{%Y-%m-%dT%H:%M:%S%z}t
|
|
||||||
; %T: time the log has been written (the request has finished)
|
; %T: time the log has been written (the request has finished)
|
||||||
; it can accept a strftime(3) format:
|
; it can accept a strftime(3) format:
|
||||||
; %d/%b/%Y:%H:%M:%S %z (default)
|
|
||||||
; The strftime(3) format must be encapsuled in a %{<strftime_format>}t tag
|
; The strftime(3) format must be encapsuled in a %{<strftime_format>}t tag
|
||||||
; e.g. for a ISO8601 formatted timestring, use: %{%Y-%m-%dT%H:%M:%S%z}t
|
|
||||||
; %u: remote user
|
; %u: remote user
|
||||||
;
|
;
|
||||||
; Default: "%R - %u %t \"%m %r\" %s"
|
; Default: "%R - %u %t \"%m %r\" %s"
|
||||||
|
Loading…
Reference in New Issue
Block a user