From 6c1b33e547544787425d277c27847d9794a660df Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Thu, 13 Jul 2017 17:56:15 +0200 Subject: [PATCH] Correct path for php pool template --- .../remi/php56/root => }/etc/php-fpm.d/www.conf/15Dl | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) rename root/etc/e-smith/templates/{opt/remi/php56/root => }/etc/php-fpm.d/www.conf/15Dl (87%) diff --git a/root/etc/e-smith/templates/opt/remi/php56/root/etc/php-fpm.d/www.conf/15Dl b/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/15Dl similarity index 87% rename from root/etc/e-smith/templates/opt/remi/php56/root/etc/php-fpm.d/www.conf/15Dl rename to root/etc/e-smith/templates/etc/php-fpm.d/www.conf/15Dl index da6e270..c212fae 100644 --- a/root/etc/e-smith/templates/opt/remi/php56/root/etc/php-fpm.d/www.conf/15Dl +++ b/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/15Dl @@ -1,14 +1,15 @@ { -if (($dl{status'} || 'disabled) eq 'enabled'){ - $OUT .=<<_EOF; -[php71-dl] +if ($PHP_VERSION eq '56'){ + if (($dl{status'} || 'disabled) eq 'enabled'){ + $OUT .=<<_EOF; +[php56-dl] user = www group = www listen.owner = root listen.group = www listen.mode = 0660 -listen = /var/run/php-fpm/php71-dl.sock +listen = /var/run/php-fpm/php56-dl.sock pm = dynamic pm.max_children = 15 pm.start_servers = 3 @@ -37,9 +38,10 @@ php_admin_flag[allow_url_include] = off php_admin_value[session.save_handler] = files php_admin_value[output_buffering] = off _EOF -} -else{ - $OUT .= '; Dl is disabled'; -} + } + else{ + $OUT .= '; Dl is disabled'; + } +} }