Fix loading APC/APCu
parent
ab7923644c
commit
b0572da1d6
|
@ -3,6 +3,9 @@
|
||||||
- name: APT | Install php-apcu
|
- name: APT | Install php-apcu
|
||||||
apt: pkg=php-apc state=latest
|
apt: pkg=php-apc state=latest
|
||||||
|
|
||||||
|
- name: SET_FACT | Set APC
|
||||||
|
set_fact: php_apc_package="apc"
|
||||||
|
|
||||||
- name: TEMPLATE | Configure APC
|
- name: TEMPLATE | Configure APC
|
||||||
template: src=etc/php5/mods-available/apcu.ini.j2 dest=/etc/php5/mods-available/apc.ini
|
template: src=etc/php5/mods-available/apcu.ini.j2 dest=/etc/php5/mods-available/apc.ini
|
||||||
notify: restart php-fpm
|
notify: restart php-fpm
|
||||||
|
|
|
@ -3,6 +3,9 @@
|
||||||
- name: APT | Install php-apcu
|
- name: APT | Install php-apcu
|
||||||
apt: pkg=php5-apcu state=latest
|
apt: pkg=php5-apcu state=latest
|
||||||
|
|
||||||
|
- name: SET_FACT | Set APCu
|
||||||
|
set_fact: php_apc_package="apcu"
|
||||||
|
|
||||||
- name: TEMPLATE | Configure Opcache / APCu
|
- name: TEMPLATE | Configure Opcache / APCu
|
||||||
template: src=etc/php5/mods-available/{{ item }}.ini.j2 dest=/etc/php5/mods-available/{{ item }}.ini
|
template: src=etc/php5/mods-available/{{ item }}.ini.j2 dest=/etc/php5/mods-available/{{ item }}.ini
|
||||||
with_items:
|
with_items:
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
; {{ ansible_managed }}
|
; {{ ansible_managed }}
|
||||||
;
|
;
|
||||||
|
|
||||||
extension=apc.so
|
extension={{ php_apc_package }}.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