Download the PHP package noahjahn/craft-php-fpm-status-monitor without Composer
On this page you can find all versions of the php package noahjahn/craft-php-fpm-status-monitor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package craft-php-fpm-status-monitor
Craft PHP FPM Status Monitor
Craft PHP FPM Status Monitor is a Craft CMS 3 plugin that allows you to monitor PHP FPM status from within the Craft CMS control panel dashboard.
This plugin is a work in progress.
Requirements
- PHP 8.0 (probably works with 7.4 as well)
- PHP running with the FastCGI Process Manager (PHP FPM)
- Including PHP FPM
pm.status_pathconfigured
- Including PHP FPM
- Web server configured to allow requests to the configured PHP FPM status path
- This has only been tested on Craft 3.7.35, but probably works on all of 3.x.x
- Composer (I mean, this is a Craft dependency too :))
Installation
- In terminal, from the root of your Craft project install the package with composer:
or, if you're like me and don't like having dependencies installed on your local machine and would rather install with Docker:
- In your browser, logged in to an admin user for your Craft site, open the Control Panel > Settings > Plugins and install the plugin
Configuration
-
Configure the
pm.status_pathin the PHP FPM configuration on your serverExample PHP FPM configuration (on your server, or in your container, PHP FPM config probably lives
/usr/local/etc/php-fpm.d/): -
Configure the web server to be able to send requests to the status path previously configured
It's recommended not to allow public access to this endpoint.
Here is some example nginx configuration under the
serverblock (yourfastcgi_passvalue will probably be different): - In the control panel of your site, set the
pathto your chosen path value in the settings of the plugin
Use cases
- View php-fpm status information from the control panel dashboard
Ideas & future
- Store metrics about past number of in use php-fpm workers
- Provide a better possible configuration given total amount of memory, PHP memory limit, and OPCache memory config