diff --git a/tasks/php.yml b/tasks/php.yml index 029c383ef159d09f5e4314741e78db45a3c7c326..1ee6cc82d223ee80f8f38e439718929a60e7021f 100644 --- a/tasks/php.yml +++ b/tasks/php.yml @@ -62,13 +62,16 @@ notify: - "Apache | Restart Apache" -- name: "PHP | Cache configuration file, opcache.ini" +- name: "PHP | Configuration files" template: - src=etc-php5-conf-d-opcache.ini - dest=/etc/{{ php_base_dir }}/{{ php_conf_dir }}/opcache.ini + src=etc-php5-conf-d-{{ item }}.ini + dest=/etc/{{ php_base_dir }}/{{ php_conf_dir }}/{{ item }}.ini owner=root group=root mode='644' + with_items: + - 'opcache' + - 'apcu' notify: - "Apache | Restart Apache" diff --git a/templates/etc-php5-conf-d-apcu.ini b/templates/etc-php5-conf-d-apcu.ini new file mode 100644 index 0000000000000000000000000000000000000000..eeacd7909fda6fb48c615a56bf8d12f3ebf781ac --- /dev/null +++ b/templates/etc-php5-conf-d-apcu.ini @@ -0,0 +1,2 @@ +extension=apcu.so +apc.shm_size={{ apc_shm_size }}