When you are not using an APC such as an accelerator, think about using a PHP accelerator; we will see how in this recipe. When a PHP script is requested, the script will be read and then it will be compiled in binary, which is called opcode. This compiled code will be executed by the PHP engine.
An opcode cache is simply a caching mechanism that saves the compiled code so that the code doesn't have to be compiled every time the script will run. In this recipe, we will optimize the php.ini
settings for the best performance.
There are a lot of PHP accelerators on the market, such as APC, eAccelerator, XCache, Zend Accelerator, and Zend Platform. At the following URLs, you can find out more information about these accelerators:
APC: This PHP accelerator can be found at http://pecl.php.net/package/APC
eAccelerator: This PHP accelerator can be found at http://eaccelerator.net/
XCache: This PHP accelerator can be found at http://xcache.lighttpd.net...