From b07c8ef801dd20ad67eccb5127d2c322bf86c0b0 Mon Sep 17 00:00:00 2001 From: Modulos Date: Mon, 1 May 2017 18:24:41 +0200 Subject: [PATCH] Add fpm config finalize setup via occ --- files/fpm.conf | 26 ++++++++++++++++++++++++++ gencode-remote | 10 +++++++--- manifest | 4 ++++ 3 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 files/fpm.conf diff --git a/files/fpm.conf b/files/fpm.conf new file mode 100644 index 0000000..776f2c6 --- /dev/null +++ b/files/fpm.conf @@ -0,0 +1,26 @@ +[www] + +user = www-data +group = www-data + +listen = /run/php/php7.0-fpm.sock + +listen.owner = www-data +listen.group = www-data + +; Choose how process manager will control the number of child processes. +pm = dynamic + +pm.max_children = 5 + +pm.start_servers = 2 +pm.min_spare_servers = 1 +pm.max_spare_servers = 3 + +env[HOSTNAME] = $HOSTNAME +env[PATH] = /usr/local/bin:/usr/bin:/bin +env[TMP] = /tmp +env[TMPDIR] = /tmp +env[TEMP] = /tmp + +security.limit_extensions = .php diff --git a/gencode-remote b/gencode-remote index 94bd17a..aff26ad 100755 --- a/gencode-remote +++ b/gencode-remote @@ -25,8 +25,12 @@ admin_user=$(cat "$__object/parameter/admin-user") admin_pass=$(cat "$__object/parameter/admin-pass") # TODO check shasum of tar ball cat <