roles/php5-fpm: Add templated php.ini
Adds a default php.ini for php5-fpm from Ubuntu 14.04 which enables sane settings for PHP 5.5's opcache as well as disables pathinfo. Closes #9. Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
parent
48daa37462
commit
2d6ce778df
21
roles/php5-fpm/defaults/main.yml
Normal file
21
roles/php5-fpm/defaults/main.yml
Normal file
@ -0,0 +1,21 @@
|
||||
---
|
||||
# file: roles/php5-fpm/defaults/main.yml
|
||||
|
||||
# default is on, but turn it off because of protection in nginx vhosts
|
||||
cgi_fix_pathinfo: 0
|
||||
|
||||
# some sane defaults for PHP 5.5+ Opcache
|
||||
# see: https://php.net/manual/en/opcache.installation.php
|
||||
opcache_enable: 1
|
||||
opcache_enable_cli: 1
|
||||
opcache_memory_consumption: 128
|
||||
opcache_interned_strings_buffer: 8
|
||||
opcache_max_accelerated_files: 4000
|
||||
opcache_use_cwd: 1
|
||||
opcache_validate_timestamps: 1
|
||||
opcache_revalidate_freq: 60
|
||||
opcache_save_comments: 0
|
||||
opcache_load_comments: 0
|
||||
opcache_fast_shutdown: 1
|
||||
|
||||
# vim: set ts=2 sw=2:
|
@ -23,10 +23,9 @@
|
||||
notify: restart php5-fpm
|
||||
tags: php5-fpm
|
||||
|
||||
# re-configure php to only process exact paths, see:
|
||||
# http://codex.wordpress.org/Nginx
|
||||
# re-configure php.ini
|
||||
- name: Update php.ini
|
||||
replace: dest=/etc/php5/fpm/php.ini regexp='^;cgi\.fix_pathinfo=0$' replace='cgi.fix_pathinfo=0'
|
||||
template: src=php.ini.j2 dest=/etc/php5/fpm/php.ini owner=root group=root mode=0644
|
||||
notify: restart php5-fpm
|
||||
tags: php5-fpm
|
||||
|
||||
|
1930
roles/php5-fpm/templates/php.ini.j2
Normal file
1930
roles/php5-fpm/templates/php.ini.j2
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user