Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Which MPM and php handler to use for http2 module?

Discussion in 'EasyApache' started by yagami_kira, Oct 9, 2017.

  1. yagami_kira

    yagami_kira Member

    Joined:
    Mar 7, 2017
    Messages:
    16
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Tokyo
    cPanel Access Level:
    Website Owner
    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 ?
     
    #1 yagami_kira, Oct 9, 2017
    Last edited: Oct 9, 2017
    egifford_corexcel likes this.
  2. Anoop P Alias

    Anoop P Alias Well-Known Member

    Joined:
    Mar 31, 2015
    Messages:
    76
    Likes Received:
    10
    Trophy Points:
    8
    Location:
    Kochi,Kerala,India
    cPanel Access Level:
    Root Administrator
    You can install a nginx proxy and have http2 served without any hassles and modifying apache httpd in any way. Good luck
     
  3. yagami_kira

    yagami_kira Member

    Joined:
    Mar 7, 2017
    Messages:
    16
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Tokyo
    cPanel Access Level:
    Website Owner
    i'm not comfortable with third party scripts and especially those not supported by cpanel
     
  4. egifford_corexcel

    egifford_corexcel Registered

    Joined:
    Oct 9, 2017
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Delaware
    cPanel Access Level:
    Root Administrator
    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.
     
    #4 egifford_corexcel, Oct 10, 2017
    Last edited: Oct 10, 2017
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    You may also find the following thread helpful:

    Prefork and HTTP2

    Thank you.
     
Loading...

Share This Page