PHP7 now supports APCu / Opcache
parent
5162d00f82
commit
c092025337
|
@ -1,19 +1,19 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: APT | Install php-apcu
|
- name: APT | Install APCu / Opcache
|
||||||
apt: pkg=php5-apcu state=latest
|
apt: pkg={{ item }} state=latest
|
||||||
when: php_version == 5
|
with_items:
|
||||||
|
- "{{ php_apt_prefix }}apcu"
|
||||||
|
- "{{ php_apt_prefix }}opcache"
|
||||||
|
|
||||||
- name: TEMPLATE | Configure APCu
|
- name: TEMPLATE | Configure APCu
|
||||||
template: >
|
template: >
|
||||||
src=etc/__php__/mods-available/opcache.ini.j2
|
src=etc/__php__/mods-available/opcache.ini.j2
|
||||||
dest="{{ php_mods_dir }}/opcache.ini"
|
dest="{{ php_mods_dir }}/opcache.ini"
|
||||||
notify: restart php-fpm
|
notify: restart php-fpm
|
||||||
when: php_version == 5
|
|
||||||
|
|
||||||
- name: TEMPLATE | Configure APCu
|
- name: TEMPLATE | Configure APCu
|
||||||
template: >
|
template: >
|
||||||
src=etc/__php__/mods-available/apcu.ini.j2
|
src=etc/__php__/mods-available/apcu.ini.j2
|
||||||
dest={{ php_mods_dir }}/apcu.ini
|
dest={{ php_mods_dir }}/apcu.ini
|
||||||
notify: restart php-fpm
|
notify: restart php-fpm
|
||||||
when: php_version == 5
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
; {{ ansible_managed }}
|
; {{ ansible_managed }}
|
||||||
;
|
;
|
||||||
|
|
||||||
extension={{ php_apc_package }}.so
|
extension=apcu.so
|
||||||
|
|
||||||
; apc.enabled can be set to 0 to disable APC
|
; apc.enabled can be set to 0 to disable APC
|
||||||
apc.enable={{ php_apc_enable }}
|
apc.enable={{ php_apc_enable }}
|
||||||
|
|
Loading…
Reference in New Issue