title: unable activate php-fpm /status|ping -page with nginx on debian6 + PLESK 12
body: <p>i am not able to get the php-fpm "/status|ping" -page to work.</p>
  
  <p>a few specs:
  OS Debian 6.0.10
  Plesk version 12.0.18 Update #35, last updated at Feb 13, 2015 08:37 PM
  PHP version is 5.4.37 (got it from dotdeb)</p>
  
  <p>installed NGINX and PHP-FPM via upgrade feature thingy on PLESK 12</p>
  
  <p>REMARK: example.com = my-real-hidden-domain-name.com</p>
  
  <p><strong>* configs and files *</strong></p>
  
  <p>*** section WEB SERVER SETTINGS
  activated nginx settings
  checkmark: Smart static files processing
  NO checkmark: Serve static files directly by nginx
  checkmark: Process PHP by nginx</p>
  
  <p>*** Additional nginx directives</p>
  
  <pre><code>location ~ ^/(status|ping)$ {
      allow all;
      fastcgi_pass unix:/var/www/vhosts/system/example.com/php-fpm.sock;
      #include /etc/nginx/fastcgi.conf;
      include /etc/nginx/fastcgi_params; # REMARK: not touched
  }
  location = /nginx_status {
      stub_status on;
  }
  </code></pre>
  
  <p><strong>* section PHP SETTINGS *</strong></p>
  
  <pre><code>cgi.fix_pathinfo=0
  </code></pre>
  
  <p>under directory /var/www/vhosts/system/example.com/conf
  added a custom php.ini file</p>
  
  <p><strong>* php.ini contends: *</strong></p>
  
  <pre><code>[example.com]
  ; Don't override following options, they are relied upon by Plesk internally
  
  ; Following options can be overridden
   chdir = /
  
  request_slowlog_timeout = 5s
  slowlog = /var/www/vhosts/example.com/logs/example.com/slowlog-example.com.log
  ; By default use on demand spawning (this requires php-fpm &gt;= 5.3.9)
  pm = dynamic
  pm.max_children = 20
  pm.process_idle_timeout = 10s
  ; Following pm.* options are used only when 'pm = dynamic'
  pm.start_servers = 3
  pm.min_spare_servers = 2
  pm.max_spare_servers = 4
  pm.max_requests = 500
  request_terminate_timeout = 120s
  rlimit_files = 131072
  rlimit_core = unlimited
  env[HOSTNAME] = $HOSTNAME
   env[PATH] = /usr/local/bin:/usr/bin:/bin
   env[TMP] = /tmp
   env[TMPDIR] = /tmp
   env[TEMP] = /tmp
  catch_workers_output = yes
  pm.status_path = /status
  ping.path = /ping
  ping.response = bong
  security.limit_extensions = .php .html
  </code></pre>
  
  <p><strong>* php.ini contends end *</strong></p>
  
  <p><strong>* configs and files end *</strong></p>
  
  <p>so far the website is working fine with this setup, all php goes through nginx/php-fpm</p>
  
  <p><strong>* now the problem to fix *</strong>
  if i try to view h**p://example.com/status</p>
  
  <p>all i get is 
  a blank page in browsers</p>
  
  <p><strong>* $ tail -f /var/log/php5-fpm.log  -n 600 -s 10 *</strong></p>
  
  <pre><code>16-Feb-2015 21:31:52] WARNING: [pool example.com] child 21532 said into stderr: "NOTICE: Access to the script '/status' has been denied (see security.limit_extensions)"
  </code></pre>
  
  <p><strong>* /var/www/vhosts/example.com/logs/example.com/proxy_access_log *</strong></p>
  
  <pre><code>xxx.xxx.xxx.xxx - - [17/Feb/2015:16:59:11 +0100] "GET /status HTTP/1.1" 200 31 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:37.0) Gecko/20100101 Firefox/37.0"
  </code></pre>
  
  <p><strong>* script test-php-fpm.sh: *</strong></p>
  
  <pre><code>SCRIPT_NAME=/status \
  SCRIPT_FILENAME=/status \
  QUERY_STRING= \
  REQUEST_METHOD=GET \
  cgi-fcgi -bind -connect /var/www/vhosts/system/example.com/php-fpm.sock
  </code></pre>
  
  <p>script end <strong>*
  <em></strong> $ ./test-php-fpm.sh <strong></em> outputs via SSH: *</strong></p>
  
  <pre><code>Access to the script '/status' has been denied (see security.limit_extensions)
  Status: 403 Forbidden
  Content-type: text/html
  
  Access denied.
  </code></pre>
  
  <p><strong>* output end (blank line is there "output?" *</strong></p>
  
  <pre><code>$ curl http://example.com/status 
  </code></pre>
  
  <p>just outputs NOTHING</p>
  
  <p><strong>* ls -l /var/www/vhosts/system/example.com/php-fpm.sock *</strong></p>
  
  <pre><code>srw-rw---- 1 root psaserv 0 Feb 15 19:58 /var/www/vhosts/system/example.com/php-fpm.sock
  </code></pre>
  
  <p>according to several tutorials it should work, but does not.</p>
  
  <p>i try searching for different solutions on the internet about 
  PHP-FPM NGINX and "BLANK PAGES" OR "ACCESS DENIED" errors, but nothing help. </p>
  
  <p>according to this guide 
  (REMARK:  i DID NOT COPY THE FILES mentioned there, because i wanna just use plesk)
  h**p://timreeves.de/internet-technologie/server-tuning-2-nginx-und-php-fpm-unter-ubuntu-12-04-lts-und-plesk-11-5/</p>
  
  <p>i also did </p>
  
  <pre><code>$ usermod -aG psacln nginx 
  </code></pre>
  
  <p>i do not want to go through TCP/IP, keep the socket file pls.
  can someone please give me an advice.</p>
  
  <p>mfg/wkr</p>