From 7250c4464814a4a742dffeb3c3dcd82afbfb58d2 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Tue, 18 Mar 2025 21:58:22 -0700 Subject: [PATCH] We can use the -cgi binary as a fallback --- phpini/phpini-lib.pl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/phpini/phpini-lib.pl b/phpini/phpini-lib.pl index 6c65510cb..433d0b862 100755 --- a/phpini/phpini-lib.pl +++ b/phpini/phpini-lib.pl @@ -342,7 +342,8 @@ if (&foreign_check("virtual-server")) { # RHEL and derivatives Debian/Ubuntu if ($file =~ /php(\d+)/ || $file =~ /php\/([\d\.]+)/) { $ver = $1; - my $binary = &has_command("php$ver"); + my $binary = &has_command("php$ver") || + &has_command("php$ver-cgi"); return $binary if ($binary); } @@ -352,7 +353,9 @@ if ($file =~ /^php.*?([\d\.]+)$/) { my $nodot = $ver; $nodot =~ s/\.//g; my $binary = &has_command("php$ver") || - &has_command("php$nodot"); + &has_command("php$nodot") || + &has_command("php$ver-cgi") || + &has_command("php$nodot-cgi"); return $binary if ($binary); }