mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 08:40:24 +00:00
Fix to consider default FPM config too
This commit is contained in:
@@ -415,6 +415,8 @@ sub get_php_ini_bootup
|
||||
my ($file) = @_;
|
||||
return undef if (!&foreign_installed("init"));
|
||||
&foreign_require("init");
|
||||
# Versioned PHP-FPM config, e.g. /etc/php/8.3/fpm/php.ini on Debian
|
||||
# or /etc/opt/remi/php83/php-fpm.conf on EL systems
|
||||
if ($file =~ /php(\d{1,2})/ || $file =~ /php\/(\d\.\d)/) {
|
||||
my $shortver = $1;
|
||||
my $nodot = $shortver;
|
||||
@@ -429,6 +431,14 @@ if ($file =~ /php(\d{1,2})/ || $file =~ /php\/(\d\.\d)/) {
|
||||
}
|
||||
}
|
||||
}
|
||||
# Default /etc/php-fpm.conf config primarily on EL systems
|
||||
elsif ($file =~ /\/(php-fpm)\.conf/) {
|
||||
my $init = $1;
|
||||
my $st = &init::action_status($init);
|
||||
if ($st) {
|
||||
return $init;
|
||||
}
|
||||
}
|
||||
return undef;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user