Install libfcgi (which provides cgi-fcgi) and php-fpm-cli.
php-fpm-cli is a tool to have PHP FPM run arbitrary code from the command line.
We use this tool in our f500.php_opcache_reset role to reset the OPcache which lives in FPM's memory.
Not much else to tell here, but please take a look at the role f500.php_opcache_reset.
Many thanx to Mathias Leppich, who is the author of php-fpm-cli and gave us the idea to create these roles!
None (as this role will only install php-fpm-cli and libfcgi).
To be able to do anything with the php-fpm-cli tool, you will need PHP FPM up and running.
None.
None.
Use as is:
- hosts: servers
roles:
- { role: f500.php_fpm_cli }
Mathias Leppich's php-fpm-cli tool
Jasper N. Brouwer, jasper@future500.nl
Ramon de la Fuente, ramon@future500.nl
Mathias Leppich's php-fpm-cli tool
Mathias Leppich, mleppich@muhqu.de