APC is a free and open PHP5 opcode cacher for caching & optimizing PHP5 intermediate code.
It is similar to other PHP5 opcode cachers, such as eAccelerator & XCache.
1. Install APC on Debian:
APC is a PHP5 extension and we will install it using PECL.For that we need to install APC dependencies:
apt-get install php5-dev apache2-prefork-dev build-essential
Now install APC:
pecl install apc
2. Enable APC:
After install you need to enable APC. Add the following line in php.ini file: