I switched from using php-fpm to php-cli.
The FastCGI implementation is done in ReactPHP based on:
https://github.com/jakubkulhan/react-fcgi
#php
#gemini