Merge branch 'improve-php' into unstable

This commit is contained in:
Jérémy Lecour 2018-03-26 21:53:51 +02:00
commit d9bf95e7b3
2 changed files with 28 additions and 20 deletions

View file

@ -29,6 +29,8 @@ The **patch** part changes incrementally at each release.
* nginx: package name can be specified (default: `nginx-full`)
* evolinux-base: Exec the firewall tasks sooner (to avoid dependency issues)
* webapps/evoadmin-web: Fail if variable evoadmin_contact_email isn't defined
* php: fix FPM custom file permissions
* php: more tasks notify FPM handler to restart if needed
### Fixed
* nginx: fix basic auth for default vhost

View file

@ -49,6 +49,7 @@
- { option: "log_errors", value: "On" }
- { option: "html_errors", value: "Off" }
- { option: "allow_url_fopen", value: "Off" }
notify: restart php-fpm
- name: Disable PHP functions for FPM
ini_file:
@ -56,6 +57,7 @@
section: PHP
option: disable_functions
value: "exec,shell-exec,system,passthru,putenv,popen"
notify: restart php-fpm
- name: Custom php.ini for FPM
copy:
@ -63,6 +65,7 @@
content: |
; Put customized values here.
force: no
notify: restart php-fpm
- name: Set default PHP FPM values
ini_file:
@ -73,6 +76,7 @@
mode: "0644"
create: yes
with_items:
when: ansible_distribution_major_version | version_compare('9', '>=')
- { option: "pm", value: "ondemand" }
- { option: "pm.max_children", value: "100" }
- { option: "pm.process_idle_timeout", value: "10s" }
@ -81,7 +85,7 @@
- { option: "pm.status_path", value: "/fpm_status" }
- { option: "request_terminate_timeout", value: "60s" }
- { option: "chroot", value: "/var/www/html" }
when: ansible_distribution_major_version | version_compare('9', '>=')
notify: restart php-fpm
- name: Custom PHP FPM values
copy:
@ -89,7 +93,9 @@
content: |
; Put customized values here.
; default_charset = "ISO-8859-1"
mode: "0644"
force: no
notify: restart php-fpm
- name: "Set custom values for PHP to enable Symfony"
ini_file:
@ -100,5 +106,5 @@
mode: "0644"
with_items:
- { option: "date.timezone", value: "Europe/Paris" }
notify: restart php-fpm
when: php_symfony_requirements