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!

PHP-FPM and Opcache

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

Tags:
  1. Erel

    Erel Active Member

    Joined:
    Jul 23, 2007
    Messages:
    29
    Likes Received:
    2
    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 Active Member

    Joined:
    Jul 23, 2007
    Messages:
    29
    Likes Received:
    2
    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:
    94
    Likes Received:
    14
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,116
    Likes Received:
    1,932
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice