X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=etc%2Ffpm-pool.conf;fp=etc%2Ffpm-pool.conf;h=98e5134bf2e7960cd94d6fdfde3db40949af687f;hb=a803d948ec9a99c633c3cb0a140fcc79d6148db8;hp=0000000000000000000000000000000000000000;hpb=fcbc3bdcbee0462a2ed03256e6648f99871ca2cf;p=mdref%2Fmdref.m6w6.name diff --git a/etc/fpm-pool.conf b/etc/fpm-pool.conf new file mode 100644 index 0000000..98e5134 --- /dev/null +++ b/etc/fpm-pool.conf @@ -0,0 +1,43 @@ +; Start a new pool named 'www'. +; the variable $pool can be used in any directive and will be replaced by the +; pool name ('www' here) +[mdref] + +user = www-data +group = www-data + +listen = /run/php/php-$pool.sock +listen.owner = www-data +listen.group = www-data +;listen.mode = 0660 + +pm = dynamic +pm.max_children = 20 +pm.start_servers = 2 +pm.min_spare_servers = 1 +pm.max_spare_servers = 3 +;pm.max_requests = 500 + +slowlog = /var/log/php-fpm.log.slow +request_slowlog_timeout = 30 + +; Depth of slow log stack trace. +; Default Value: 20 +;request_slowlog_trace_depth = 20 + +; The timeout for serving a single request after which the worker process will +; be killed. This option should be used when the 'max_execution_time' ini option +; does not stop script execution for some reason. A value of '0' means 'off'. +; Available units: s(econds)(default), m(inutes), h(ours), or d(ays) +; Default Value: 0 +;request_terminate_timeout = 0 + +; Chdir to this directory at the start. +; Note: relative path can be used. +; Default Value: current directory or / when chroot +chdir = /var/www/$pool + +; Note: set an empty value to allow all extensions. +; Default Value: .php +security.limit_extensions = .php +