From 1ec6d07232fd3bc4265d1026235ac4d9e93f25f1 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sun, 15 Sep 2019 15:55:42 +0300 Subject: [PATCH] roles/nginx: Fix php7.3-fpm socket location on Debian 10 --- roles/nginx/templates/vhost.conf.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/nginx/templates/vhost.conf.j2 b/roles/nginx/templates/vhost.conf.j2 index af7fb52..e5021b6 100644 --- a/roles/nginx/templates/vhost.conf.j2 +++ b/roles/nginx/templates/vhost.conf.j2 @@ -68,6 +68,8 @@ server { fastcgi_pass unix:/run/php/php7.0-fpm-{{ domain_name }}.sock; {% elif ansible_distribution == 'Ubuntu' and ansible_distribution_version is version_compare('18.04', '==') %} fastcgi_pass unix:/run/php/php7.2-fpm-{{ domain_name }}.sock; + {% elif ansible_distribution == 'Debian' and ansible_distribution_version is version_compare('10', '==') %} + fastcgi_pass unix:/run/php/php7.3-fpm-{{ domain_name }}.sock; {% else %} fastcgi_pass unix:/var/run/php5-fpm-{{ domain_name }}.sock; {% endif %}