# Change folder of PHP5-FPM status/ping output

**URL:** <https://www.ruby-forum.com/t/change-folder-of-php5-fpm-status-ping-output/223234>\
**Category:** NGINX\
**Created:** [September 26, 2012, 1:57pm UTC](https://www.ruby-forum.com/t/change-folder-of-php5-fpm-status-ping-output/223234 "2012-09-26T13:57:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [September 26, 2012, 1:57pm UTC](https://www.ruby-forum.com/t/change-folder-of-php5-fpm-status-ping-output/223234/1 "2012-09-26T13:57:47Z")

</div>

I’m trying to change the directory of PHP5-FPM status/ping output. I  
have a  
dir ‘stats’ on HOSTNAME/stats/ protected by auth\_basic and I’d like to  
move  
the output there! These are my current configs (default ones):

Nginx vhost declaration (server block):

### FPM Status

location ~ ^/(status|ping)$ {  
fastcgi\_pass unix:/var/run/php5-fpm.sock;  
access\_log off;  
}

In PHP5-FPM conf I have:

pm.status\_path = /status  
ping.path = /ping

I tried adding a /stats before the / on both nginx/php conf but it  
doesn’t  
work (file not found). What should I do to move the status/ping output  
on  
/stats/ folder? Thanks in advance. 🙂
