wordpress: some PHP parameters must be customizable.
This commit is contained in:
parent
347a8a7dfc
commit
e944b702ea
|
@ -34,10 +34,13 @@ wordpress_php_prereq:
|
||||||
- 'php{{ php_version }}-memcached'
|
- 'php{{ php_version }}-memcached'
|
||||||
- 'php{{ php_version }}-zip'
|
- 'php{{ php_version }}-zip'
|
||||||
- 'php{{ php_version }}-curl'
|
- 'php{{ php_version }}-curl'
|
||||||
|
- 'php{{ php_version }}-opcache'
|
||||||
- php-pear
|
- php-pear
|
||||||
- php-date
|
- php-date
|
||||||
- imagemagick
|
- imagemagick
|
||||||
- 'php{{ php_version }}-mysqlnd'
|
- 'php{{ php_version }}-mysqlnd'
|
||||||
|
- 'php-apcu'
|
||||||
|
|
||||||
|
|
||||||
wordpress_local_mysql: True
|
wordpress_local_mysql: True
|
||||||
|
|
||||||
|
@ -51,3 +54,9 @@ wordpress_db_table_prefix: 'mywp_'
|
||||||
wordpress_local_nginx: True
|
wordpress_local_nginx: True
|
||||||
wordpress_local_nginx_virtualhost: '{{ wordpress_local_nginx }}'
|
wordpress_local_nginx_virtualhost: '{{ wordpress_local_nginx }}'
|
||||||
wordpress_doc_root: /var/www/html/wordpress
|
wordpress_doc_root: /var/www/html/wordpress
|
||||||
|
|
||||||
|
phpfpm_default_memory_limit: "128M"
|
||||||
|
wordpress_upload_max_filesize: 32M
|
||||||
|
nginx_client_max_body_size: '{{ wordpress_upload_max_filesize }}'
|
||||||
|
phpfpm_allow_url_fopen: 'on'
|
||||||
|
phpfpm_max_execution_time: '240'
|
||||||
|
|
|
@ -13,8 +13,26 @@ phpfpm_cli_dir: '/etc/php{{ php_version }}/cli'
|
||||||
mysql_db_data:
|
mysql_db_data:
|
||||||
- { name: '{{ wordpress_db_name }}', user: '{{ wordpress_db_user }}', pwd: '{{ wordpress_db_pwd }}', collation: '{{ mysql_default_collation }}', encoding: '{{ mysql_default_encoding }}', user_grant: 'ALL', allowed_hosts: [ '{{ ansible_fqdn }}/32', '127.0.0.1/8', 'localhost' ] }
|
- { name: '{{ wordpress_db_name }}', user: '{{ wordpress_db_user }}', pwd: '{{ wordpress_db_pwd }}', collation: '{{ mysql_default_collation }}', encoding: '{{ mysql_default_encoding }}', user_grant: 'ALL', allowed_hosts: [ '{{ ansible_fqdn }}/32', '127.0.0.1/8', 'localhost' ] }
|
||||||
|
|
||||||
|
php_global_settings:
|
||||||
|
- { option: 'always_populate_raw_post_data', value: '-1' }
|
||||||
|
- { option: 'allow_url_fopen', value: '{{ phpfpm_allow_url_fopen }}' }
|
||||||
|
- { option: 'max_execution_time', value: '{{ phpfpm_max_execution_time }}' }
|
||||||
|
- { option: 'memory_limit', value: '{{ phpfpm_default_memory_limit }}' }
|
||||||
|
- { option: 'max_input_vars', value: '1400' }
|
||||||
|
- { option: 'post_max_size', value: '{{ wordpress_upload_max_filesize }}' }
|
||||||
|
- { option: 'upload_max_filesize', value: '{{ wordpress_upload_max_filesize }}' }
|
||||||
|
- { option: 'opcache.enable', value: '1' }
|
||||||
|
- { option: 'opcache.enable_cli', value: '1' }
|
||||||
|
- { option: 'opcache.interned_strings_buffer', value: '8' }
|
||||||
|
- { option: 'opcache.max_accelerated_files', value: '10000' }
|
||||||
|
- { option: 'opcache.memory_consumption', value: '128' }
|
||||||
|
- { option: 'opcache.save_comments', value: '1' }
|
||||||
|
- { option: 'opcache.revalidate_freq', value: '1' }
|
||||||
|
|
||||||
|
php_cli_global_settings: '{{ php_global_settings }}'
|
||||||
|
|
||||||
phpfpm_default_pool_name: '{{ wordpress_system_user }}'
|
phpfpm_default_pool_name: '{{ wordpress_system_user }}'
|
||||||
phpfpm_default_user: '{{ wordpress_system_user }}'
|
phpfpm_default_user: '{{ wordpress_system_user }}'
|
||||||
|
|
||||||
phpfpm_pools:
|
phpfpm_pools:
|
||||||
- { pool_name: '{{ phpfpm_default_pool_name }}', app_context: '{{ phpfpm_default_context }}', user: '{{ phpfpm_default_user }}', group: '{{ phpfpm_default_group }}', listen: '{{ phpfpm_default_listen }}', allowed_clients: '{{ phpfpm_default_allowed_clients }}', pm: '{{ phpfpm_default_pm }}', pm_max_children: '{{ phpfpm_default_pm_max_children }}', pm_start_servers: '{{ phpfpm_default_pm_start_servers }}', pm_min_spare: '{{ phpfpm_default_pm_min_spare_servers }}', pm_max_spare: '{{ phpfpm_default_pm_max_spare_servers }}', pm_max_requests: '{{ phpfpm_default_pm_max_requests }}', pm_status_enabled: '{{ phpfpm_default_pm_status_enabled }}', pm_status_path: '{{ phpfpm_default_pm_status_path }}', ping_enabled: '{{ phpfpm_default_ping_enabled }}', ping_path: '{{ phpfpm_default_ping_path }}', ping_response: '{{ phpfpm_default_ping_response }}', display_errors: '{{ phpfpm_default_display_errors }}', log_errors: '{{ phpfpm_default_log_errors }}', memory_limit: '{{ phpfpm_default_memory_limit }}', slowlog_timeout: '{{ phpfpm_default_slowlog_timeout }}', rlimit_files: '{{ phpfpm_default_rlimit_files }}', php_extensions: '{{ phpfpm_default_extensions }}', define_custom_variables: '{{ phpfpm_default_define_custom_variables }}', admin_write: True, doc_root: '{{ wordpress_doc_root }}', virthost: '{{ wordpress_servername }}', virthost_aliases: "{{ wordpress_aliases | default('') }}" }
|
- { pool_name: '{{ phpfpm_default_pool_name }}', app_context: '{{ phpfpm_default_context }}', user: '{{ phpfpm_default_user }}', group: '{{ phpfpm_default_group }}', listen: '{{ phpfpm_default_listen }}', allowed_clients: '{{ phpfpm_default_allowed_clients }}', pm: '{{ phpfpm_default_pm }}', pm_max_children: '{{ phpfpm_default_pm_max_children }}', pm_start_servers: '{{ phpfpm_default_pm_start_servers }}', pm_min_spare: '{{ phpfpm_default_pm_min_spare_servers }}', pm_max_spare: '{{ phpfpm_default_pm_max_spare_servers }}', pm_max_requests: '{{ phpfpm_default_pm_max_requests }}', pm_status_enabled: '{{ phpfpm_default_pm_status_enabled }}', pm_status_path: '{{ phpfpm_default_pm_status_path }}', ping_enabled: '{{ phpfpm_default_ping_enabled }}', ping_path: '{{ phpfpm_default_ping_path }}', ping_response: '{{ phpfpm_default_ping_response }}', display_errors: '{{ phpfpm_default_display_errors }}', log_errors: '{{ phpfpm_default_log_errors }}', memory_limit: '{{ phpfpm_default_memory_limit }}', slowlog_timeout: '{{ phpfpm_default_slowlog_timeout }}', rlimit_files: '{{ phpfpm_default_rlimit_files }}', php_extensions: '{{ phpfpm_default_extensions }}', define_custom_variables: '{{ phpfpm_default_define_custom_variables }}', admin_write: True, doc_root: '{{ wordpress_doc_root }}', virthost: '{{ wordpress_servername }}', virthost_aliases: "{{ wordpress_aliases | default('') }}" }2
|
Loading…
Reference in New Issue