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. You can boost your PHP web application using this module. For example you can use it in WordPress using W3 Total Cache.
To install Alternative PHP Cache (APC) you can use PECL (repository for PHP Extensions):
1. Open your SSH with root access.
2. Install APC dependency pcre prior to installing APC:
yum install pcre-devel #For CentOS
aptitude install libpcre3-dev #For Ubuntu/Debian
3. Install APC:
pecl install apc
4. Wait until it is finished.
5. Test it by creating a file in your web directory using phpinfo()
<?php phpinfo(); ?>
Now you can use APC for a better cache mechanism; see the PHP APC book at php.net.
For WordPress blogs you can use W3 Total Cache to use PHP APC.
