cPanel & WHM no longer develops or updates EasyApache 3. We deprecated EasyApache 3 on December 31, 2018. We removed support for EasyApache 3 in cPanel & WHM version 78.
PHP Extension: OPCache - EasyApache - cPanel Documentation
Page tree
Skip to end of metadata
Go to start of metadata


OPCache – The OPCache opcode cacher


PHP Version5
Profile ValueCpanel::Easy::PHP5::Opcache
Reverse BooleanNo


This extension is not compatible with the suPHP PHP handler.

This extension is not compatible with xCache. If you enable xCache, EasyApache disables OPCache. 


The system does not automatically configure OPCache.  EasyApache adds OPCache's recommended settings to the global PHP configuration file, located at /usr/local/lib/php.ini, but comments them out with the semicolon character (;). For this reason, you must manually configure OPCache after installation. 

We strongly recommend that you use the DSO or fcgi PHP handlers if you install OPCache. 


If you upgrade or downgrade your PHP version, the system does not properly comment out the old directive. You must comment out the directive for your previous PHP version. Locate your extension directory with the grep extension_dir /usr/local/lib/php.ini command, then comment out the directive that does not correspond to your directory.

Vendor documentation

PHP versionDocumentation