mirror of
https://github.com/webmin/webmin.git
synced 2026-09-21 13:00:38 +01:00
We can use the -cgi binary as a fallback
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user