Skip to content

Commit ad15933

Browse files
committed
Making sure output from PHP-FPM is redirected to the Docker logs
1 parent 257f26e commit ad15933

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

config/fpm-pool.conf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
[global]
2+
; Log to stderr
3+
error_log = /dev/stderr
4+
15
[www]
26
; Enable status page
37
pm.status_path = /fpm-status
@@ -29,3 +33,6 @@ pm.max_requests = 500
2933

3034
; Make sure the FPM workers can reach the environment variables for configuration
3135
clear_env = no
36+
37+
; Catch output from PHP
38+
catch_workers_output = yes

config/nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ http {
1515
'$request_time $upstream_response_time $pipe $upstream_cache_status';
1616

1717
access_log /dev/stdout main_timed;
18-
error_log /dev/stderr info;
18+
error_log /dev/stderr notice;
1919

2020
keepalive_timeout 65;
2121

0 commit comments

Comments
 (0)