PHP-FPM and Opcache
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 ?
Does OPCache work properly with MPM event + PHP-FPM + https2 ?
-
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. 0 -
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 0 -
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. 0
Please sign in to leave a comment.
Comments
3 comments