PHP-FPM on SVR.JS

PHP applications running on SVR.JS and various ways of running PHP on SVR.JS...
Post Reply
User avatar
DorianNiemiecSVRJS
Administrator
Posts: 31
Joined: July 7th, 2023, 12:00 am
Location: Poland
Gender:
Contact:

PHP-FPM on SVR.JS

Post by DorianNiemiecSVRJS »

Hello, I got PHP-FPM to work with SVR.JS. I have developed the mod called "GreenRhombus" for FastCGI web applications.

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"
}
And configure greenrhombus-scriptexts.json like this:

Code: Select all

[
  ".php"
]
I oppose "You may be a victim of software counterfeiting" windows.
When I see school students' PHP code, I may ask: But where is mysqli_real_escape_string?
Download SVR.JS
Post Reply