d4science-infrastructure, library/roles/php-fpm: Fix the session paths.

This commit is contained in:
Andrea Dell'Amico 2017-02-14 17:02:30 +01:00
parent 5a91e6944e
commit f74c765894
1 changed files with 5 additions and 1 deletions

View File

@ -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') }} php_admin_value[upload_max_filesize] = {{ item.upload_max_filesize | default('100M') }}
; Set session path to a directory owned by process user ; 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_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 %} {% if item.define_custom_variables is defined and item.define_custom_variables %}
{% for php_var in phpfpm_php_variables %} {% for php_var in phpfpm_php_variables %}
php_value[{{ php_var.prop }}] = {{ php_var.value }} php_value[{{ php_var.prop }}] = {{ php_var.value }}