The Alternative PHP Cache (APC) is a free and open opcode cache for PHP. Its goal is to provide a free, open, and robust framework for caching and optimizing PHP intermediate code.
APC can significantly speed up your PHP applications, by caching both PHP code and user variables. Adding APC to an application usually results in improved application response times, reduced server load and happier users.
Here in this post I will explain how to install APC with PHP.
1. First we will install the required packages:
2. Now Install APC:
3. Create file /etc/php5/conf.d/apc.ini with the following content:
4. Restart Apache:
After restarting the Apache2 web server APC section will be included in PHP.INI. you can see in phpinfo() output.