diff --git a/tasks/configure.yml b/tasks/configure.yml index 0e812a96..23832116 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -19,3 +19,10 @@ with_items: "{{ php_conf_paths }}" notify: Restart webserver when: php_use_managed_ini + +- name: Give permissions to php-fpm.log + file: + path: /var/log/php-fpm.log + owner: "{{ __php_fpm_pool_user }}" + group: "{{ __php_fpm_pool_group }}" + mode: 0664 diff --git a/templates/php.ini.j2 b/templates/php.ini.j2 index 8cabc458..e2fc079e 100644 --- a/templates/php.ini.j2 +++ b/templates/php.ini.j2 @@ -42,6 +42,7 @@ error_reporting = {{ php_error_reporting }} display_errors = {{ php_display_errors }} display_startup_errors = {{ php_display_startup_errors }} log_errors = On +error_log = /var/log/php-fpm.log log_errors_max_len = 1024 ignore_repeated_errors = Off ignore_repeated_source = Off