Trying to get the php-fpm status per the www.conf file in 7.2
This posted helped but still not succeeding
my www.conf file has
pm.status_path = /phpfpm
my caddy entry is
https://status.kebler.net {
import wildcard_cert
fastcgi /phpfpm /var/run/php/php7.2-fpm-status.sock php
fastcgi / /var/run/php/php7.2-fpm.sock php
root /mnt/data/webs/status
}
caddy and fpm services are restarted (no errors)
All other php based websites on server working fine.
put
https://status.kebler.net/phpfpm?html&full
in browser I get 404 not found.
put in
https://status.kebler.net
I get my root custom status page I built in php (works fine)
First I see no
/var/run/php/php7.2-fpm-status.sock
when I uncomment the status_path in www.conf it that supposed to fire up a status socket? If so I don’t see one. Well I tried it with the -status removed and either way no go.
just for grins I put a little php in /mnt/data/webs/status/phpfpm
and the browser shows this so I can only conclude that the fastcgi /phpfpm
line is not working and just dropping through.
I can see the status via the commandline so it’s a caddy isssue me thinks.
sysadmin@nas:~$ SCRIPT_NAME=/phpfpm SCRIPT_FILENAME=/phpfpm REQUEST_METHOD=GET cgi-fcgi -bind -connect /var/run/php/php7.2-fpm.sock
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control: no-cache, no-store, must-revalidate, max-age=0
Content-type: text/plain;charset=UTF-8
pool: www
process manager: dynamic
start time: 01/Nov/2018:14:45:30 -0700
start since: 60
accepted conn: 9
listen queue: 0
max listen queue: 0
listen queue len: 0
idle processes: 1
active processes: 1
total processes: 2
max active processes: 1
max children reached: 0
slow requests: 0
Any other thoughts/input?