HostOnNet Blog

How To Install Alternative PHP Cache For Linux

Looking for Linux Server Admin or WordPress Expert? We can help.


APC is a great operation code caching system for PHP that can help speed up your site.

To install APC packages with the following command:

cd /usr/local/src/
tar zxvf APC-3.1.9.tgz
cd APC-3.1.9.tgz
./configure –enable-apc –enable-apc-mmap –with-apxs=/usr/bin/apxs –with-php-config=/usr/bin/php-config
make install

The latest version of APC can be obtained from

Then proceed to add the following to the local php.ini:


About Annie

I've been working in Technical Section for over 10 years in a wide range of tech jobs from Tech Support to Software Testing. I started writing blog for my future reference and useful for all.
Posted in Linux

One Response to How To Install Alternative PHP Cache For Linux

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.