diff --git a/php/ng/files/php.ini b/php/ng/files/php.ini index d16d374..892960e 100644 --- a/php/ng/files/php.ini +++ b/php/ng/files/php.ini @@ -12,6 +12,8 @@ {%- elif value is iterable -%} {%- if key == 'error_reporting' %} {{ key }} = {{ value|join(" & ") }} + {%- elif key == 'extension' %} + {{ key }} = {{ value|join("\n extension = ") }} {%- else %} {{ key }} = {{ value|join(",") }} {%- endif -%} diff --git a/pillar.example b/pillar.example index f07e066..1f83b68 100644 --- a/pillar.example +++ b/pillar.example @@ -76,6 +76,8 @@ php: settings: PHP: engine: 'Off' + extension_dir: '/usr/lib/php/modules/' + extension: [pdo_mysql.so, iconv.so, openssl.so] # options to manage the php-fpm conf file conf: @@ -108,6 +110,9 @@ php: user: www-data group: www-data listen: /var/run/php5-fpm-myapp.sock + listen.owner: www-data + listen.group: www-data + listen.mode: 0660 pm: dynamic pm.max_children: 5 pm.start_servers: 2