How to install the ZendOptimizerPlus (aka OPcache) PHP extension for older PHP versions (5.2x, 5.3.x, 5.4.x)
ZendOptimizerPlus (OPcache) is an opcode cache which is already part of PHP5.5. If you are using an older PHP version, it can be interesting to install it on your server.
Installation of required package
Download of the upstream source (here, I'm using the last master branch state)
Unzip of the upstream source
Configuration, compilation and installation
Last output should be (which give you the path of the opcache extension)
Creation of the file /etc/php5/mods-available/opcache.ini with the following content
Activation of the OPcache extension
Result (here on Ubuntu Raring)
Note: The OPcache extension helps to speed up PHP applications, but also, this allow to reduce the memory usage. For instance, during my tests, the memory used for the panel (which was run through Nginx and PHP5.4.9 as a FastCGI application) has been halved.
Enjoy