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.

PHP-FPM and Opcache

Discussion in 'EasyApache' started by Erel, Jul 22, 2017.

Tags:
  1. Erel

    Erel Member

    Joined:
    Jul 23, 2007
    Messages:
    23
    Likes Received:
    1
    Trophy Points:
    53
    Reading recent threads, I understand that it is recommended to switch to MPM event with PHP-FPM (we are currently using prefork with DSO and OPCache enabled). Especially if we want to enable http2.

    On the other hand the documentations about opcache says: PHP Options - EasyApache 4 - cPanel Documentation
    Does OPCache work properly with MPM event + PHP-FPM + https2 ?
     
  2. Erel

    Erel Member

    Joined:
    Jul 23, 2007
    Messages:
    23
    Likes Received:
    1
    Trophy Points:
    53
    I went ahead and updated the server. Everything seems to work fine and http2 is fast!

    I think that the issue with Opcache is related to shared hosting, which is not relevant in our case.
     
  3. 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
    Yes OpCache will work with any php handler that handles persistent connections. This include DSO,FastCGI(mod_fcgid) and PHP-FPM.

    opcache does not work with CGI /SuPHP
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    I'm glad to see it's working well. While DSO (and thus Prefork) is recommended for use with Opcache, it's not required.

    Thank you.
     
Loading...

Share This Page