I'm currently running a VPS server (Prefork and DSO+modruid2 by default set by the web host) with EA4, CentOS 7.4, and cPanel 66, with 1.2GB of RAM but with equal-shared 16-core CPU available so there's plenty of CPU power.
It's low traffic so memory use is OK as I'm getting between 40-60% utilization on average. And I don't experience OOM errors so far.
In preparation for using the now stable HTTP/2 module, I plan to use MPM Event and either PHP-FPM or CGI since DSO can no longer be used.
My first step is to first change the PHP handler to something other than DSO. Since only CGI and PHP-FPM is available on the server, I made a benchmark using a Wordpress plugin that tests MySQL and PHP performance and below were the results:
===
PHP 5.6 using DSO
MySQL - 11.33 seconds
PHP - 4.16s
PHP 5.6 using PHP-FPM
MySQL - 10.96s
PHP - 3.60s
PHP 7.0 using CGI
MySQL - 11.28s
PHP - 1.38s
PHP 7.0 using PHP-FPM
MySQL - 11.57s
PHP - 1.42s
===
On PHP 7.0, CGI appeared to be slightly faster than PHP-FPM. I believe this CGI is not FastCGI (since factcgi cannot be utilized on multi-php environment).
I heard in some forums that php-fpm is the fastest handler. But are there cases where CGI can be a bit faster than PHP-FPM under default configuration ? Because if that is the case, I will utilize MPM Event + CGI sitewide in preparation to HTTP/2.