{"id":1394,"date":"2014-10-20T09:40:52","date_gmt":"2014-10-20T16:40:52","guid":{"rendered":"http:\/\/yan.lalife.net\/?p=1394"},"modified":"2026-01-20T05:08:02","modified_gmt":"2026-01-20T05:08:02","slug":"enable-status-in-php-fpm-nginx","status":"publish","type":"post","link":"http:\/\/www.lalife.net\/?p=1394","title":{"rendered":"Enable status in PHP-fpm + Nginx"},"content":{"rendered":"<p>It was a little bit confusing to set it up. So here&#8217;s the memo.<\/p>\n<blockquote><p>\nvi \/etc\/php5\/fpm\/pool.d\/www.conf<\/p>\n<p>pm.status_path = \/status<br \/>\nlisten = 127.0.0.1:9000<\/p>\n<p>vi \/etc\/nginx\/sites-available\/monitor<br \/>\nlocation ~ ^\/(status|ping)$ {<br \/>\n       include fastcgi_params;<br \/>\n       #access_log off;<br \/>\n       allow 127.0.0.1;<br \/>\n       allow xx.xx.xx.xx;<br \/>\n       deny all;<br \/>\n       fastcgi_param SCRIPT_FILENAME \/status;<br \/>\n       fastcgi_pass 127.0.0.1:9000;<br \/>\n    }<\/p>\n<p>Restart nginx and php-fpm processes.<\/p>\n<\/blockquote>\n<p>Ref: <a href=\"https:\/\/rtcamp.com\/tutorials\/php\/fpm-status-page\/\" title=\"Link\">Here<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>It was a little bit confusing to set it up. So here&#8217;s the memo. vi \/etc\/php5\/fpm\/pool.d\/www.conf pm.status_path = \/status listen = 127.0.0.1:9000 vi \/etc\/nginx\/sites-available\/monitor location ~ ^\/(status|ping)$ { include fastcgi_params; #access_log off; allow 127.0.0.1; allow xx.xx.xx.xx; deny all; fastcgi_param SCRIPT_FILENAME &hellip; <a href=\"http:\/\/www.lalife.net\/?p=1394\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-1394","post","type-post","status-publish","format-standard","hentry","category-it-memo"],"_links":{"self":[{"href":"http:\/\/www.lalife.net\/index.php?rest_route=\/wp\/v2\/posts\/1394","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.lalife.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.lalife.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.lalife.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.lalife.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1394"}],"version-history":[{"count":1,"href":"http:\/\/www.lalife.net\/index.php?rest_route=\/wp\/v2\/posts\/1394\/revisions"}],"predecessor-version":[{"id":1849,"href":"http:\/\/www.lalife.net\/index.php?rest_route=\/wp\/v2\/posts\/1394\/revisions\/1849"}],"wp:attachment":[{"href":"http:\/\/www.lalife.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1394"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.lalife.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1394"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.lalife.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1394"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}