From 57b1ae3b1888f8ce8e64abd0328a57ceebd0b9ad Mon Sep 17 00:00:00 2001 From: Ilia Ross Date: Sun, 31 May 2026 16:14:38 +0200 Subject: [PATCH] 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 --- phpini/phpini-lib.pl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/phpini/phpini-lib.pl b/phpini/phpini-lib.pl index a81dffdf1..ebd7d8276 100755 --- a/phpini/phpini-lib.pl +++ b/phpini/phpini-lib.pl @@ -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; }