I set up pm.status_path = /status
option:
ubuntu:~$ cat /etc/php/7.1/fpm/pool.d/www.conf | egrep 'listen|status' listen = /run/php/php7.1-fpm.sock listen.owner = www-data listen.group = www-data pm.status_path = /status
Socket is correct (and sites work):
ubuntu:~$ sudo ls -la /run/php/php7.1-fpm.sock srw-rw---- 1 www-data www-data 0 Feb 9 07:58 /run/php/php7.1-fpm.sock
But I can't receive this status page:
ubuntu:~$ SCRIPT_NAME=/status SCRIPT_FILENAME=/status \ > REQUEST_METHOD=GET sudo cgi-fcgi -bind -connect /run/php/php7.1-fpm.sock Content-type: text/html; charset=UTF-8
Or using nginx config:
server { listen 80; server_name localhost; location /status { include fastcgi_params; fastcgi_pass unix:/run/php/php7.1-fpm.sock; } }
curl http://localhost/status
is empty, status code is 200.
curl http://localhost/something
returns error 404 as expected.
What should I do to solve this situation? What to check?
/status?full
?