Setting up php-fpm monitoring

Alma Linux 9
Webmin 2.520
Virtualmin 7.50.0 GPL
Webserver version Apache/2.4.62

Does anyone know how to set up php-fpm monitoring on webmin? I tried adding this to the system /etc/php-fpm.d/www.conf:

pm.status_path = /fpm-status
ping.path = /fpm-ping

and this to the main virtualhost in /etc/httpd/conf/httpd.conf:

<Location /fpm-status>
Require local
SetHandler “proxy:unix:/run/php-fpm/www.sock|fcgi://localhost/fpm-status”

<Location /fpm-ping>
Require local
SetHandler “proxy:unix:/run/php-fpm/www.sock|fcgi://localhost/fpm-ping”

but when I try and hit it when ssh’d in via wget -O - http://localhost/fpm-status or wget -O - http://ourvps.com/fpm-status I get 404 errors. Any help is appreciated, thanks.

You can add a service monitor at Webmin → System and Server Status

That’s not what they’re asking for. The FPM server has a status page that shows a bunch of information about the server and configuration.

1 Like

This is not the path to any Virtualmin-managed domain’s FPM server.

Look at the configuration for your VirtualHost to see where the actual FPM server socket lives.

e.g. something like this:

SetHandler proxy:unix:/run/php-fpm/17130485371827514.sock|fcgi://127.0.0.1

Each domain has its own FPM server running as the domain owner with its own socket.

1 Like