From 16d0e5e8ff5c184356efc1a6a942a886eac3f7ad Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Fri, 14 Jun 2024 09:55:28 -0700 Subject: [PATCH] FCGIwrap is only run via a socket --- virtualmin-nginx-lib.pl | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/virtualmin-nginx-lib.pl b/virtualmin-nginx-lib.pl index b2215ca..511d864 100644 --- a/virtualmin-nginx-lib.pl +++ b/virtualmin-nginx-lib.pl @@ -2040,12 +2040,7 @@ sub get_fcgiwrap_server_command { my ($d, $port) = @_; my $cmd = &has_command("fcgiwrap"); -if ($port =~ /^\//) { - $cmd .= " -s unix:".$port; - } -else { - $cmd .= " -s tcp:127.0.0.1:".$port; - } +$cmd .= " -s unix:".$port; my $log = "$d->{'home'}/logs/fcgiwrap.log"; my $piddir = "/var/php-nginx"; if (!-d $piddir) {