ansible-php/defaults/main.yml

100 lines
2.7 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
2015-07-27 23:09:52 +07:00
php_install_xdebug: false
2015-07-23 15:40:33 +07:00
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-27 23:09:52 +07:00
# Xdebug
php_xdebug_auto_trace: '0'
php_xdebug_cli_color: '0'
php_xdebug_collect_assignments: '0'
php_xdebug_collect_includes: '1'
php_xdebug_collect_params: '0'
php_xdebug_collect_return: '0'
php_xdebug_collect_vars: '0'
php_xdebug_coverage_enable: '1'
php_xdebug_default_enable: '1'
php_xdebug_dump_globals: '1'
php_xdebug_dump_once: '1'
php_xdebug_dump_undefined: '0'
php_xdebug_extended_info: '1'
php_xdebug_file_link_format: 'xdebug://%f@%l'
php_xdebug_force_display_errors: '0'
php_xdebug_force_error_reporting: '0'
php_xdebug_halt_level: '0'
php_xdebug_idekey: '*complex*'
php_xdebug_manual_url: 'http://www.php.net'
php_xdebug_max_nesting_level: '100'
php_xdebug_overload_var_dump: '1'
php_xdebug_profiler_append: '0'
php_xdebug_profiler_enable: '0'
php_xdebug_profiler_enable_trigger: '0'
php_xdebug_profiler_enable_trigger_value: '""'
php_xdebug_profiler_output_dir: '/tmp'
php_xdebug_profiler_output_name: 'cachegrind.out.%p'
php_xdebug_remote_autostart: '0'
php_xdebug_remote_connect_back: '0'
php_xdebug_remote_cookie_expire_time: '3600'
php_xdebug_remote_enable: '0'
php_xdebug_remote_handler: 'dbgp'
php_xdebug_remote_host: 'localhost'
php_xdebug_remote_log: 'xdebug.remote_log'
php_xdebug_remote_mode: 'req'
php_xdebug_remote_port: '9000'
php_xdebug_scream: '0'
php_xdebug_show_exception_trace: '0'
php_xdebug_show_local_vars: '0'
php_xdebug_show_mem_delta: '0'
php_xdebug_trace_enable_trigger: '0'
php_xdebug_trace_enable_trigger_value: '""'
php_xdebug_trace_format: '0'
php_xdebug_trace_options: '0'
php_xdebug_trace_output_dir: '/tmp'
php_xdebug_trace_output_name: 'trace.%c'
php_xdebug_var_display_max_children: '128'
php_xdebug_var_display_max_data: '512'
php_xdebug_var_display_max_depth: '3'
2015-07-23 22:44:19 +07:00
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