Erel

Active Member
Jul 23, 2007
29
2
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
We strongly recommend the DSO PHP handler for the OPCache opcode cacher.
Does OPCache work properly with MPM event + PHP-FPM + https2 ?
 

Erel

Active Member
Jul 23, 2007
29
2
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.
 

Anoop P Alias

Well-Known Member
Mar 31, 2015
103
16
18
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,237
463
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.