forked from ISTI-ansible-roles/ansible-roles
d4science-infrastructure, library/roles/php-fpm: Fix the session paths.
This commit is contained in:
parent
5a91e6944e
commit
f74c765894
|
@ -279,7 +279,11 @@ php_admin_value[memory_limit] = {{ item.memory_limit | default('64M') }}
|
|||
php_admin_value[upload_max_filesize] = {{ item.upload_max_filesize | default('100M') }}
|
||||
; Set session path to a directory owned by process user
|
||||
php_value[session.save_handler] = '{{ item.session_save_handler | default('files') }}'
|
||||
php_value[session.save_path] = '{{ item.session_save_path | default('/var/lib/php/www') }}'
|
||||
{% if phpfpm_session_prefix is defined %}
|
||||
php_value[session.save_path] = '{{ phpfpm_session_prefix }}/{{ item.pool_name }}'
|
||||
{% else %}
|
||||
php_value[session.save_path] = '/var/lib/php/www'
|
||||
{% endif %}
|
||||
{% if item.define_custom_variables is defined and item.define_custom_variables %}
|
||||
{% for php_var in phpfpm_php_variables %}
|
||||
php_value[{{ php_var.prop }}] = {{ php_var.value }}
|
||||
|
|
Loading…
Reference in New Issue