63 lines
4.2 KiB
Django/Jinja
63 lines
4.2 KiB
Django/Jinja
[{{ item.0.name }}]
|
|
|
|
user = {{ item.0.user | default('www-data') }}
|
|
group = {{ item.0.group | default('www-data') }}
|
|
|
|
listen = /run/php/php{{ item.1.version }}-fpm-{{ item.0.name }}.sock
|
|
listen.owner = {{ item.0.user | default('www-data') }}
|
|
listen.group = www-data
|
|
listen.mode = 0660
|
|
listen.backlog = -1
|
|
|
|
pm = {{ item.0.pm | default('dynamic') }}
|
|
pm.start_servers = {{ item.0.pm_start_servers | default(5) }}
|
|
pm.min_spare_servers = {{ item.0.pm_min_spare_servers | default(3) }}
|
|
pm.max_spare_servers = {{ item.0.pm_max_spare_servers | default(8) }}
|
|
pm.max_children = {{ item.0.pm_max_children | default(100) }}
|
|
|
|
pm.max_requests = {{ item.0.pm_max_requests | default(200) }}
|
|
|
|
pm.status_path = /status
|
|
ping.path = /ping
|
|
ping.response = pong
|
|
|
|
{% if item.0.slowlog_path is not sameas(false) %}
|
|
request_slowlog_timeout = {{ item.0.request_slowlog_timeout | default('30s') }}
|
|
slowlog = {{ item.0.slowlog_path | default('/var/log/php/' ~ item.1.version ~ '/' ~ item.0.name ~ '/php-slow.log') }}
|
|
{% endif %}
|
|
|
|
request_terminate_timeout = {{ item.0.request_terminate_timeout | default('60s') }}
|
|
rlimit_files = {{ item.0.rlimit_files | default(65536) }}
|
|
catch_workers_output = {{ item.0.catch_workers_output | default('yes') }}
|
|
|
|
security.limit_extensions = .php
|
|
|
|
;; PHP FLAGS and VALUES
|
|
php_admin_flag[display_errors] = {{ item.0.admin_flag_display_errors | default('Off') }}
|
|
php_admin_flag[log_errors] = {{ item.0.admin_flag_log_errors | default('On') }}
|
|
{% if item.0.error_log_path is not sameas(false) %}
|
|
php_admin_value[error_log] = {{ item.0.error_log_path | default('/var/log/php/' ~ item.1.version ~ '/' ~ item.0.name ~ '/php-errors.log') }}
|
|
{% endif %}
|
|
php_admin_value[error_reporting] = {{ item.0.admin_value_error_reporting | default('E_ALL & ~E_NOTICE') }}
|
|
php_admin_value[memory_limit] = {{ item.0.admin_value_memory_limit | default('64M') }}
|
|
php_admin_value[upload_max_filesize] = {{ item.0.admin_value_upload_max_filesize | default('16M') }}
|
|
php_admin_value[post_max_size] = {{ item.0.admin_value_post_max_size | default('16M') }}
|
|
php_admin_value[max_execution_time] = {{ item.0.admin_value_max_execution_time | default('30') }}
|
|
php_admin_value[max_input_time] = {{ item.0.admin_value_max_input_time | default('60') }}
|
|
php_admin_value[date.timezone] = {{ item.0.admin_value_date_timezone | default('Europe/Paris') }}
|
|
|
|
;; OPCACHE SETTINGS
|
|
php_admin_value[opcache.enable] = {{ item.0.admin_value_opcache_enable | default('0') }}
|
|
php_admin_value[opcache.enable_cli] = {{ item.0.admin_value_opcache_enable_cli | default('0') }}
|
|
php_admin_value[opcache.enable_file_override] = {{ item.0.admin_value_opcache_enable_file_override | default('1') }}
|
|
php_admin_value[opcache.validate_timestamps] = {{ item.0.admin_value_opcache_validate_timestamps | default('1') }}
|
|
php_admin_value[opcache.interned_strings_buffer]= {{ item.0.admin_value_opcache_interned_strings_buffer | default('8') }}
|
|
php_admin_value[opcache.max_accelerated_files] = {{ item.0.admin_value_opcache_max_accelerated_files | default('10000') }}
|
|
php_admin_value[opcache.memory_consumption] = {{ item.0.admin_value_opcache_memory_consumption | default('128') }}
|
|
php_admin_value[opcache.save_comments] = {{ item.0.admin_value_opcache_save_comments | default('1') }}
|
|
php_admin_value[opcache.revalidate_freq] = {{ item.0.admin_value_opcache_revalidate_freq | default('1') }}
|
|
php_admin_value[opcache.error_log] = {{ item.0.admin_value_opcache_error_log | default('syslog') }}
|
|
php_admin_value[opcache.fast_shutdown] = {{ item.0.admin_value_opcache_fast_shutdown | default('1') }}
|
|
php_admin_value[opcache.max_wasted_percentage] = {{ item.0.admin_value_opcache_max_wasted_percentage | default('5') }}
|
|
php_admin_value[opcache.save_comments] = {{ item.0.admin_value_opcache_save_comments | default('1') }}
|
|
php_admin_value[opcache.use_cwd] = {{ item.0.admin_value_opcache_use_cwd | default('1') }} |