I would like your opinion on PHP-FPM...
I was wondering why PHP-FPM is so popular ???
Sorry for worshippers of PHP-FPM, but I don't get it...
I had only BAD, super BAD, and more than TERRIBLE outcome with that installed.
In my server (Centos 7 + PHP 8 + latest WHM...) I had many time the cpu goes 1100% crazy WITHOUT END seeing php-fpm in top.... (note; same issues with php 7)
** the moment I completely uninstalled it : boom, wow, my site was 10x faster.... I don't get it because PHP-FPM seems to me that it's a layer on top of PHP (extra computation). [in EasyApache4 uncheck it in php extensions]
In my case I need file upload and that php don't use www as a user....
I also disabled output buffer and gzip compression... because some of my script could take long to finish and I need to output live (while processing implicit flush echos...)
You'll wonder why ?
1 example you could be familiar with : if a user upload a .mov, ffmpeg needs to convert it. ffmpeg can take time, so with php is quite easy to echo stuff while shell_exec is performing.
an other simple example echo '1'; sleep(3);echo '2'; sleep(3);echo '3'; sleep(3);
that simple lines : (output buffer off and implicit flush on)
• with PHP-FPM : I wait, wait then 1 2 wait wait 3 like it was exhausted of running....
• without PHP-FPM : NO wait : 1, normal 3sec, 2, normal 3sec, 3
with PHP-FPM I was feeling like if the server was suffering to output stuff.
without PHP-FPM ; no wait just plain flow, right away, TTFB WAY WAY WAY smaller, etc
*** also good to note : PHP-FPM installed and put to off => same blocking feeling, I really had to yum remove it to get the full raw speed.
when I see : PHP-FPM is PHP's FastCGI implementation. In this setup, PHP-FPM runs as a standalone FastCGI server and Apache connects to it using FastCGI modules, such as mod_fcgid, mod_fastcgi or mod_proxy_fcgi (Apache 2.4+). In this configuration, permissions, processes related stuff & everything else is controlled by the PHP-FPM server. Performance is comparable with mod_php.
it kind of give me the creeps
I just want opinions....
I was wondering why PHP-FPM is so popular ???
Sorry for worshippers of PHP-FPM, but I don't get it...
I had only BAD, super BAD, and more than TERRIBLE outcome with that installed.
In my server (Centos 7 + PHP 8 + latest WHM...) I had many time the cpu goes 1100% crazy WITHOUT END seeing php-fpm in top.... (note; same issues with php 7)
** the moment I completely uninstalled it : boom, wow, my site was 10x faster.... I don't get it because PHP-FPM seems to me that it's a layer on top of PHP (extra computation). [in EasyApache4 uncheck it in php extensions]
In my case I need file upload and that php don't use www as a user....
I also disabled output buffer and gzip compression... because some of my script could take long to finish and I need to output live (while processing implicit flush echos...)
You'll wonder why ?
1 example you could be familiar with : if a user upload a .mov, ffmpeg needs to convert it. ffmpeg can take time, so with php is quite easy to echo stuff while shell_exec is performing.
an other simple example echo '1'; sleep(3);echo '2'; sleep(3);echo '3'; sleep(3);
that simple lines : (output buffer off and implicit flush on)
• with PHP-FPM : I wait, wait then 1 2 wait wait 3 like it was exhausted of running....
• without PHP-FPM : NO wait : 1, normal 3sec, 2, normal 3sec, 3
with PHP-FPM I was feeling like if the server was suffering to output stuff.
without PHP-FPM ; no wait just plain flow, right away, TTFB WAY WAY WAY smaller, etc
*** also good to note : PHP-FPM installed and put to off => same blocking feeling, I really had to yum remove it to get the full raw speed.
when I see : PHP-FPM is PHP's FastCGI implementation. In this setup, PHP-FPM runs as a standalone FastCGI server and Apache connects to it using FastCGI modules, such as mod_fcgid, mod_fastcgi or mod_proxy_fcgi (Apache 2.4+). In this configuration, permissions, processes related stuff & everything else is controlled by the PHP-FPM server. Performance is comparable with mod_php.
it kind of give me the creeps
I just want opinions....