From 068c29cd0217fa29fb12cf145f954fc960b153bd Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Thu, 15 Jun 2017 13:08:29 +0200 Subject: [PATCH] add PHP_MAX_CHILDREN var --- README.md | 7 ++++++- rootfs/etc/confd/templates/www.conf.tmpl | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3d733b1..a58cc06 100644 --- a/README.md +++ b/README.md @@ -22,10 +22,15 @@ Maximal upload size. Maximum amount of memory that a script is allowed to allocate. ## PHP_MAX_EXECUTION_TIME -- default 30 +- default: 30 Execution time limit for php scripts in seconds. +## PHP_MAX_CHILDREN +- default: 5 + +Value of `pm.max_children`. + ## PHP_ADMIN_VALUES Comma seperated list of php admin values. diff --git a/rootfs/etc/confd/templates/www.conf.tmpl b/rootfs/etc/confd/templates/www.conf.tmpl index 5d16082..376f5b5 100644 --- a/rootfs/etc/confd/templates/www.conf.tmpl +++ b/rootfs/etc/confd/templates/www.conf.tmpl @@ -113,7 +113,7 @@ pm = dynamic ; forget to tweak pm.* to fit your needs. ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand' ; Note: This value is mandatory. -pm.max_children = 5 +pm.max_children = {{ getenv "PHP_MAX_CHILDREN" "5"}} ; The number of child processes created on startup. ; Note: Used only when pm is set to 'dynamic'