Which MPM and php handler to use for http2 module?
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 with simple default Wordpress installation and simple sites and scripts, 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 new HTTP/2 module, I plan to use MPM Event and PHP-FPM since Prefork and DSO are incompatible with http2 module.
Many people say to use MPM Event since this is more modern than MPM Worker. But I want to know in your experiences so far in particular in conjunction with the HTTP2 module, and php-fpm. I'm not sure if there are still a lot of bugs with the mod_http2 module at this time, but what would be more stable to use in my case, to use Worker or Event ?
-
You can install a nginx proxy and have http2 served without any hassles and modifying apache httpd in any way. Good luck 0 -
i'm not comfortable with third party scripts and especially those not supported by cpanel 0 -
I can't answer your fundamental question on Worker vs Event, but I can tell you my experience. I'm working on the same process: Moving to http/2 for a new server and also using PHP-FPM. Our websites are all PHP based. Based on readings from StackExchange, I choose Event: How do I select which Apache MPM to use? I first switched from Prefork to Event. This uninstalled mod_cgi, mod_mpm_prefork, and mod_ruid2. It installed mod_cgid and mod_mpm_event. I provisioned this change through EasyApache 4. After the above changes provisioned, I installed mod_http2 through EasyApache 4. I had to do this in two steps because doing it one step generated an error message. So far, things are working well and I'm detecting that http/2 is being used by my browser. I didn't have to do any additional configuration outside of using the EasyApache screens. Disclaimer: This server isn't in production, so this configuration isn't battle tested, yet. 0 -
Hello, You may also find the following thread helpful: Prefork and HTTP2 Thank you. 0
Please sign in to leave a comment.
Comments
4 comments