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.
To install APC, do the following commands:
# aptitude install php-pear # aptitude install php5-dev # aptitude install apache2-dev # pecl install apc # echo "extension=apc.so" >> /etc/php5/apache2/conf.d/apc.ini # /etc/init.d/apache2 restart
Update Feb 25, 2012:
I found one liner APC installation from php.net:
$ sudo apt-get install php-apc