cd /usr/local/src
wget http://pecl.php.net/get/APC-3.1.9.tgz
tar -zxvf APC-3.1.9.tgz
cd APC-3.1.8
phpize
./configure --enable-apc --enable-apc-mmap --with-apxs --with-php-config=/usr/local/bin/php-config
make
make install
Please note: APC 3.1.9 was the latest stable release at the time this article was written, please check http://pecl.php.net/package/APC before proceeding to ensure you install the latest version. Following your APC install, add the following lines to your global php.ini (/usr/local/lib/php.ini) to activate it:extension="apc.so"
apc.enabled=1
apc.shm_segments=1
apc.shm_size=128
Please remember that cPanel doesn’t provide support for APC, but the benefit it can offer and the vast amount of information available on the internet about it can certainly make it worth it.