Fix PHP-FPM monitor for EL /etc/php.ini
* Note: Map the shared EL PHP configuration file /etc/php.ini to the php-fpm boot action when that service exists, so the PHP-FPM status monitor can resolve current status on Rocky/RHEL systems. root@rocky9-pro:~# php-fpm -i | grep "Loaded Configuration File" Loaded Configuration File => /etc/php.ini https://github.com/webmin/webmin/issues/2599
This commit is contained in:
@@ -468,6 +468,14 @@ elsif ($file =~ /\/(php-fpm)\.conf/) {
|
||||
return $init;
|
||||
}
|
||||
}
|
||||
# Generic /etc/php.ini config shared by EL PHP-FPM packages
|
||||
elsif ($file eq "/etc/php.ini") {
|
||||
my $init = "php-fpm";
|
||||
my $st = &init::action_status($init);
|
||||
if ($st) {
|
||||
return $init;
|
||||
}
|
||||
}
|
||||
return undef;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user