title: Set up php-fpm status page with php7 and apache
body: <p>I'm trying to set up and get php-fpm stats with a http call. I know it's possible to use the <strong>service status</strong> command, but I would like to get that from my browser.</p>
  
  <p>I'm running php7, and apache, and this is what I did in my server configuration.</p>
  
  <p>at apache side, I create a vhost with this :</p>
  
  <pre><code>&lt;LocationMatch "/fpm-status"&gt;
               Order Allow,Deny
               Allow from 127.0.0.1
               ProxyPass fcgi://127.0.0.1:9000
  &lt;/LocationMatch&gt;
  </code></pre>
  
  <p>In the php pool configuration (<strong>/etc/php/7.0/fpm/pool.d/www.conf</strong>) I have this :</p>
  
  <pre><code>[www]
  user = www-data
  group = www-data
  listen = 127.0.0.1:9000
  listen.owner = www-data
  listen.group = www-data
  
  pm = ondemand
  
  pm.max_children = 1000
  
  pm.start_servers = 150
  pm.min_spare_servers = 50
  pm.max_spare_servers = 400
  pm.max_requests = 200
  pm.process_idle_timeout = 5s
  pm.status_path = /fpm-status
  </code></pre>
  
  <p>but after restart apache and php-fpm process, when I try with curl I get this output :</p>
  
  <pre><code>admin@ip-10-3-23-78:~$curl http://localhost/fpm-status
  &lt;!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"&gt;
  &lt;html&gt;&lt;head&gt;
  &lt;title&gt;403 Forbidden&lt;/title&gt;
  &lt;/head&gt;&lt;body&gt;
  &lt;h1&gt;Forbidden&lt;/h1&gt;
  &lt;p&gt;You don't have permission to access /fpm-status
  on this server.&lt;br /&gt;
  &lt;/p&gt;
  &lt;/body&gt;&lt;/html&gt;
  admin@ip-10-3-23-78:~$ 
  </code></pre>
  
  <p>And in the apache log file I have this :</p>
  
  <pre><code>==&gt; /var/log/apache2/error.log &lt;==
  [Thu Aug 25 13:36:10.776665 2016] [access_compat:error] [pid 12608] [client ::1:23142] AH01797: client denied by server configuration: proxy:fcgi://127.0.0.1:9000
  </code></pre>
  
  <p>I would like to know how to really set this up. I've googled for long time and didn't get a precise answer, every one is trying his way. 
  Who is reponsible to create the status page (<strong>fpm-status</strong> in my case)? When and how this page is generated (by php-fpm I guess)? 
  What is the right way to set the page up and accessible from a browser?</p>