Accessing PHP-FPM's Status Page

Schiz0 schiz0phrenic21 at gmail.com
Fri Jun 21 02:31:23 UTC 2013


Hello list,

I use php-fpm via fastcgi to handle my PHP scripts. I have that working
successfully. PHP-FPM has a feature where it displays a status page, as
mentioned here:
http://php.net/manual/en/install.fpm.configuration.php#pm.status-path

I'd like to be able to access this through nginx. I tried setting my
configuration to what I would expect to work, but, alas, it does not.

Here's my configuration:
http://p.ngx.cc/042567f732ada334

The error I get when I try to browse to domain.com/fpm-status is:
"File not found."

in my browser, and in the nginx error log:

2013/06/20 22:29:51 [error] 85006#0: *13 FastCGI sent in stderr: "Primary
script unknown" while reading response header from upstream, client:
x.x.x.132, server: domain.com, request: "GET /fpm-status HTTP/1.1",
upstream: "fastcgi://unix:/var/run/phpfpm.sock:", host: "domain.com"

Nothing shows up in php-fpm's error log.

Thanks for any help/suggestions on getting this working!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20130620/afad9361/attachment.html>


More information about the nginx mailing list