PHP 5.5.0 and later
- To use OPcache with PHP 5.5.0 or later, you must compile PHP with the
- option, then use the
+ By default, OPcache will be compiled as a shared extension. If you have
+ disabled the building of default extensions with
+ , you must compile PHP with
+ the option for OPcache
+ to be available.
+
+
+
+ Once compiled, you can use the
zend_extension configuration
- directive to load the library at runtime. This can be done with
+ directive to load the OPcache extension into PHP. This can be done with
zend_extension=/full/path/to/opcache.so on non-Windows
platforms, and zend_extension=C:\path\to\php_opcache.dll
on Windows.