cPanel & WHM Version 98 has been released, and brings a slew of great updates. Take a look at what is included, and then upgrade today!

EasyApache 4 PHP-FPM Status Page for Individual Pools

Jasper shared this idea 5 years ago
Open Discussion

I am wondering if there is a way for me to access the PHP-FPM status page of any particular PHP-FPM pool within the WHM interface just like how we can access the Apache Status page as easily within WHM? There is currently no way to easily see the status of each FPM process and its workers.


I notice that pm.status_path is currently pointing to /status in all my config files of all my pools. However, there's currently no way to access them in WHM or in cPanel.


In /opt/cpanel/ea-php5X/root/etc/php-fpm.d/[domain].conf :


  1. pm.status_path = /status


Allowing for this will enable me to easily monitor the usage of all my pools:


  1. pool: www
  2. process manager: dynamic
  3. start time: 17/May/2016:13:54:02 +0530
  4. start since: 886617
  5. accepted conn: 1619617
  6. listen queue: 0
  7. max listen queue: 0
  8. listen queue len: 0
  9. idle processes: 28
  10. active processes: 2
  11. total processes: 30
  12. max active processes: 31
  13. max children reached: 0
  14. slow requests: 0


Will also be great if the page can show with the /status?full optionto allow me to view more details on the processes within the pool.

Reference: http://php.net/manual/en/install.fpm.configuration.php#pm.status-path

Replies (2)

photo
1

I am desperately looking for this feature. I want also be notified by email once any of limit is reached. It is currently not possible to know what pool setting should I select for websites and It is unknown to me if I am losing any visitors because of having tight settings.

photo
1

The default FilesMatch directive for vhosts has the following regex gating access to PHP-FPM: \.(phtml|php[0-9]*)$

In my case, I've changed the defaults in /var/cpanel/ApachePHPFPM/system_pool_defaults.yaml to have pm_status_path and ping_path both end in .php0 extensions, which will be passed through to PHP-FPM and return the status and ping pages. Note that since these will never actually be files on disk, any .htaccess files that check for the existence of a file and otherwise pass everything else through to a router will not let these requests work.

Leave a Comment
 
Attach a file