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:
Ilia Ross
2026-05-31 16:14:38 +02:00
parent fd79acd840
commit 57b1ae3b18
+8
View File
@@ -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;
}