APC OK pour PHP 5.4

pull/5/head
Emilien Mantel 2015-07-23 17:44:19 +02:00
parent 227b235233
commit 7b7e3bb4f4
3 changed files with 35 additions and 3 deletions

View File

@ -24,10 +24,18 @@ php_opcache_revalidate_freq: "2"
php_opcache_max_file_size: "0" php_opcache_max_file_size: "0"
# APC settings (useful for PHP <5.5). # APC settings (useful for PHP <5.5).
php_apc_cache_by_default: "1" php_apc_enable: "1"
php_apc_shm_size: "96M"
php_apc_stat: "1"
php_apc_enable_cli: "0" php_apc_enable_cli: "0"
php_apc_shm_size: "32M"
php_apc_num_files_hint: "0"
php_apc_user_entries_hint: "0"
php_apc_user_ttl: "360"
php_apc_ttl: "60"
php_apc_file_update_protection: "0"
php_apc_slam_defense: "0"
php_apc_stat_ctime: "1"
# PHP-FPM # PHP-FPM
php_fpm_poold: php_fpm_poold:

View File

@ -0,0 +1,8 @@
---
- name: APT | Install php-apcu
apt: pkg=php-apc state=latest
- name: TEMPLATE | Configure APC
template: src=etc/php5/mods-available/apc.j2 dest=/etc/php5/mods-available/apc.ini
notify: restart php-fpm

View File

@ -0,0 +1,16 @@
;
; {{ ansible_managed }}
;
extension=apc.so
apc.enable_cli={{ php_apc_enable_cli }}
apc.shm_size={{ php_apc_shm_size }}
apc.enable={{ php_apc_enable }}
apc.num_files_hint={{ php_apc_num_files_hint }}
apc.user_entries_hint={{ php_apc_user_entries_hint }}
apc.user_ttl={{ php_apc_user_ttl }}
apc.ttl={{ php_apc_ttl }}
apc.file_update_protection={{ php_apc_file_update_protection }}
apc.slam_defense={{ php_apc_slam_defense }}
apc.stat_ctime={{ php_apc_stat_ctime }}