From bcb0f9d78efa5749ae552f6a13f33f0263d148c8 Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Mon, 9 Oct 2017 10:29:34 +0200 Subject: [PATCH] ansible-inventories/arocom#1297 Add APCu to PHP 7 --- tasks/php.yml | 9 ++++++--- templates/etc-php5-conf-d-apcu.ini | 2 ++ 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 templates/etc-php5-conf-d-apcu.ini diff --git a/tasks/php.yml b/tasks/php.yml index 029c383..1ee6cc8 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 0000000..eeacd79 --- /dev/null +++ b/templates/etc-php5-conf-d-apcu.ini @@ -0,0 +1,2 @@ +extension=apcu.so +apc.shm_size={{ apc_shm_size }} -- GitLab