As in title, how to check fpm status? running? serving how many requests? Thanks.
A:
You can get the SAPI with
php_sapi_name— Returns the type of interface between web server and PHP
Returns the interface type, as a lowercase string. Although not exhaustive, the possible return values include aolserver, apache, apache2filter, apache2handler, caudium, cgi (until PHP 5.3), cgi-fcgi, cli, continuity, embed, isapi, litespeed, milter, nsapi, phttpd, pi3web, roxen, thttpd, tux, and webjames.
For status and how many requests are served you might want to use exec or system.
Gordon
2010-06-22 15:45:55