logs - add the possibility to override slowlog and errors.log in pool configuration
This commit is contained in:
@@ -13,6 +13,8 @@ notifempty
|
||||
sharedscripts
|
||||
su root adm
|
||||
|
||||
/var/log/php/*/*-slow.log
|
||||
/var/log/php/*/*-errors.log
|
||||
/var/log/php/*/*/php-slow.log
|
||||
/var/log/php/*/*/php-errors.log
|
||||
{
|
||||
|
||||
@@ -21,8 +21,10 @@ 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 = /var/log/php/{{ item.0.name }}/{{ item.1.version }}/php-slow.log
|
||||
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) }}
|
||||
@@ -33,7 +35,9 @@ 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') }}
|
||||
php_admin_value[error_log] = /var/log/php/{{ item.0.name }}/{{ item.1.version }}/php-errors.log
|
||||
{% 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') }}
|
||||
|
||||
Reference in New Issue
Block a user