From 681d00012bf77296b9a96e0d160504749ef53cb3 Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Thu, 18 Jan 2018 15:47:17 +0100 Subject: [PATCH] Optionally run PHP FPM over a socket --- templates/php_pool.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/php_pool.conf b/templates/php_pool.conf index e40c4cf..043a762 100644 --- a/templates/php_pool.conf +++ b/templates/php_pool.conf @@ -3,7 +3,11 @@ user = {{ item.jail.name }} group = {{ item.jail.name }} ;chroot = {{ jailroot }}/{{ item.jail.name }} chdir = / +{% if php_fpm_socket %} +listen = /var/run/php{{ php_version_main }}-fpm.sock +{% else %} listen = 127.0.0.1:{{ item.jail.port }} +{% endif %} ; Process manager pm = dynamic -- GitLab