images/server-php/config/fpm-pool.conf.template

43 lines
993 B
Text
Raw Permalink Normal View History

[global]
; Log to stderr
error_log = /dev/stderr
[www]
; User and group for PHP-FPM processes
user = nobody
group = nobody
; The address on which to accept FastCGI requests.
listen = /run/php-fpm.sock
; Set permissions for unix socket
listen.owner = nobody
listen.group = nobody
listen.mode = 0666
; Enable status page
pm.status_path = /fpm-status
; Ondemand process manager
pm = ondemand
; The maximum number of child processes
pm.max_children = 100
; The number of seconds after which an idle process will be killed.
pm.process_idle_timeout = 10s
; The number of requests each child process should execute before respawning.
pm.max_requests = 1000
; Make sure the FPM workers can reach the environment variables for configuration
clear_env = no
; Catch output from PHP
catch_workers_output = yes
; Remove the 'child 10 said into stderr' prefix in the log and only show the actual message
decorate_workers_output = no
; Enable ping page to use in healthcheck
ping.path = /fpm-ping