Overview
OPCache – The OPCache opcode cacher
Profile
Name | OPCache |
---|---|
PHP Version | 5 |
Profile Value | Cpanel::Easy::PHP5::Opcache |
Reverse Boolean | No |
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 version | Documentation |
---|---|
5 | Docs |