ansible-php/defaults/main.yml

49 lines
1.0 KiB
YAML
Raw Normal View History

2015-07-22 14:40:20 +07:00
---
2015-07-23 15:40:33 +07:00
php_install_fpm: true
php_extra_packages: []
# php.ini config
php_ini:
- key: 'date.timezone'
value: 'Europe/Paris'
- key: 'expose_php'
value: 'Off'
- key: 'memory_limit'
value: '256M'
2015-07-23 23:10:17 +07:00
# OpCache settings (PHP >= 5.5)
2015-07-23 15:40:33 +07:00
php_opcache_enable: "1"
php_opcache_enable_cli: "0"
php_opcache_memory_consumption: "96"
php_opcache_interned_strings_buffer: "16"
php_opcache_max_accelerated_files: "4096"
php_opcache_max_wasted_percentage: "5"
php_opcache_validate_timestamps: "1"
php_opcache_revalidate_freq: "2"
php_opcache_max_file_size: "0"
2015-07-23 23:10:17 +07:00
# APC/APCu settings
2015-07-23 22:44:19 +07:00
php_apc_enable: "1"
2015-07-23 15:40:33 +07:00
php_apc_enable_cli: "0"
2015-07-23 22:44:19 +07:00
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"
2015-07-23 15:40:33 +07:00
# PHP-FPM
2015-07-23 22:10:15 +07:00
php_fpm_poold:
- pool_name: 'www'
listen: '/var/run/php5-fpm.sock'
pm: 'dynamic'
2015-07-23 23:10:17 +07:00
pm_max_children: 250
2015-07-23 22:10:15 +07:00
pm_start_servers: 10
pm_min_spare_servers: 10
pm_max_spare_servers: 20
2015-07-23 23:10:17 +07:00