瀏覽代碼

Allow pillars to specify a list of extensions

tags/v0.34.0
Imran Haider 9 年之前
父節點
當前提交
b7dd176c84
共有 2 個檔案被更改,包括 7 行新增0 行删除
  1. +2
    -0
      php/ng/files/php.ini
  2. +5
    -0
      pillar.example

+ 2
- 0
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 -%}

+ 5
- 0
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

Loading…
取消
儲存