Plesk for Linux
kb: how-to
ABT: Group B
Applicable to:
- Plesk for Linux
Question
How to ensure that Opcache is enabled?
Answer
-
Check which PHP handler is used by the website at Domains > example.com > PHP Settings > PHP support ( PHP version ...)
Note: According to PHP Documentation, OPcache is available only since PHP 5.5. For PHP 5.2, 5.3 and 5.4 it can be installed as PECL extension.
-
Check if Opcache is enabled for the domain at Domains > example.com > PHP Settings > Performance Settings > opcache.enable "on"
- Check if Opcache is enabled for the handler at Tools & Settings > PHP Settings > handler name
Note: Opcache statistics is available at Domains > example.com > PHP Settings > View the php_info() page - cache hits, cache misses.
Comments
2 comments
Hi,
This article perfectly answers the question... however i have googled and looked through plesk forums and cannot find a tutorial anywhere how to actually enable opcache with centos 6 and php 5.6 and plesk onyx.....
apparently its already compiled into php 5.6?
@William opcache module is shipped with Plesk PHP 5.6 by default. All that you need is to install Plesk PHP5.6 by using "plesk installer". In case of errors feel free to submit a support ticket.
Please sign in to leave a comment.