From ad15933ed368282d2f5b99406340ae750ef4f6fc Mon Sep 17 00:00:00 2001 From: Tim de Pater Date: Sat, 9 Sep 2017 09:26:05 +0200 Subject: [PATCH] Making sure output from PHP-FPM is redirected to the Docker logs --- config/fpm-pool.conf | 7 +++++++ config/nginx.conf | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/config/fpm-pool.conf b/config/fpm-pool.conf index 8cb9f45..741c1ed 100644 --- a/config/fpm-pool.conf +++ b/config/fpm-pool.conf @@ -1,3 +1,7 @@ +[global] +; Log to stderr +error_log = /dev/stderr + [www] ; Enable status page pm.status_path = /fpm-status @@ -29,3 +33,6 @@ pm.max_requests = 500 ; Make sure the FPM workers can reach the environment variables for configuration clear_env = no + +; Catch output from PHP +catch_workers_output = yes diff --git a/config/nginx.conf b/config/nginx.conf index b35ea5a..7c6bad6 100644 --- a/config/nginx.conf +++ b/config/nginx.conf @@ -15,7 +15,7 @@ http { '$request_time $upstream_response_time $pipe $upstream_cache_status'; access_log /dev/stdout main_timed; - error_log /dev/stderr info; + error_log /dev/stderr notice; keepalive_timeout 65;