summaryrefslogtreecommitdiffstats
path: root/build-context/php-fpm.d
diff options
context:
space:
mode:
Diffstat (limited to 'build-context/php-fpm.d')
-rw-r--r--build-context/php-fpm.d/docker.conf6
-rw-r--r--build-context/php-fpm.d/zabbix.conf20
2 files changed, 26 insertions, 0 deletions
diff --git a/build-context/php-fpm.d/docker.conf b/build-context/php-fpm.d/docker.conf
new file mode 100644
index 0000000..864c61c
--- /dev/null
+++ b/build-context/php-fpm.d/docker.conf
@@ -0,0 +1,6 @@
+[global]
+error_log = /proc/self/fd/2
+daemonize = no
+
+; https://github.com/docker-library/php/pull/725#issuecomment-443540114
+log_limit = 8192
diff --git a/build-context/php-fpm.d/zabbix.conf b/build-context/php-fpm.d/zabbix.conf
new file mode 100644
index 0000000..c658bf6
--- /dev/null
+++ b/build-context/php-fpm.d/zabbix.conf
@@ -0,0 +1,20 @@
+[zabbix]
+pm = dynamic
+pm.max_children = 5
+pm.start_servers = 2
+pm.min_spare_servers = 1
+pm.max_spare_servers = 3
+pm.max_requests = 1000
+
+user = phpfpm
+
+listen = 9000
+chdir = /usr/share/webapps/zabbix
+
+; if we send this to /proc/self/fd/1, it never appears
+access.log = /proc/self/fd/3
+clear_env = no
+
+; Ensure worker stdout and stderr are sent to the main error log.
+catch_workers_output = yes
+decorate_workers_output = no