Thanks to PHP-FPM, I'm getting faster response times with PHP web applications. Before switching from RedBrick and PHP-CGI, SVR.JS Forum (powered by phpBB) responded within 300ms. Now after switching to GreenRhombus and PHP-FPM it is only 100ms! I have checked it using time curl -I https://forum.svrjs.org.
How to do it?
If you want to use GreenRhombus only for PHP-FPM, configure greenrhombus-config.json like this (in this case we’re using socket in /run/php/php8.2-fpm.sock; you can check it in PHP-FPM configuration file, e.g. /etc/php/8.2/fpm/pool.d/www.conf; configure it without path property):
Code: Select all
{
"socketPath": "/run/php/php8.2-fpm.sock"
}
Code: Select all
[
".php"
]