diff --git a/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/15Dl b/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/15Dl index 9317cec..885bacd 100644 --- a/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/15Dl +++ b/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/15Dl @@ -3,25 +3,26 @@ if ($PHP_VERSION eq '56'){ if (($dl{'status'} || 'disabled') eq 'enabled'){ my $max_upload_size = ($dl{MaxUploadSize} || '4096') . 'M'; + my $id = 'dl'; $OUT .=<<_EOF; -[php56-dl] +[php$PHP_VERSION-$id] user = www group = www listen.owner = root listen.group = www listen.mode = 0660 -listen = /var/run/php-fpm/php56-dl.sock +listen = /var/run/php-fpm/php$PHP_VERSION-$id.sock pm = dynamic pm.max_children = 15 pm.start_servers = 3 pm.min_spare_servers = 3 pm.max_spare_servers = 4 pm.max_requests = 5000 -php_admin_value[session.save_path] = /var/lib/php/dl/session -php_admin_value[opcache.file_cache] = /var/lib/php/dl/opcache -php_admin_value[upload_tmp_dir] = /var/lib/php/dl/tmp -php_admin_value[error_log] = /var/log/php/dl/error.log +php_admin_value[session.save_path] = /var/lib/php/$id/session +php_admin_value[opcache.file_cache] = /var/lib/php/$id/opcache +php_admin_value[upload_tmp_dir] = /var/lib/php/$id/tmp +php_admin_value[error_log] = /var/log/php/$id/error.log slowlog = /var/log/php/dl/slow.log php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f php@{ $DomainName } php_admin_flag[display_errors] = off