Page tree
Skip to end of metadata
Go to start of metadata

Overview

OPCache – The OPCache opcode cacher

Profile

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

Compatibility

This extension is not compatible with the suPHP PHP handler.

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

Notes

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. 

Important:

If you upgrade or downgrade your PHP version, the system does not properly comment out the old opcache.so 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 opcache.so directive that does not correspond to your directory.

Vendor documentation

PHP versionDocumentation
5Docs