Enable Alternative PHP Cache [APC] in CWP

Alternative PHP Cache is a free, open source (PHP license) framework that caches the output of the PHP bytecode compiler in shared memory, thus reducing parsing and disk I/O overhead for later requests; and a shared memory cache for user data. For an application consisting of a large source code base such as Drupal, a 3x increase in page generation speed is possible as a result.

How to Install:

cd /usr/local/src
rm -rf APC-3.1.9.tgz
wget -c https://pecl.php.net/get/APC-3.1.9.tgz
tar xzvf APC-3.1.9.tgz
cd APC-3.1.9
phpize
./configure
make && make install
echo "extension=apc.so" > /usr/local/php/php.ini
  • 6 Users Found This Useful
Was this answer helpful?

Related Articles

Easily Enable Mod_PageSpeed in CWP (Without Compiling)

Enable Mod_deflate /usr/local/apache/bin/apxs -c -i...

Installing Zend Loader in CWP

In this tutorial we will show you how we can install zend loader on CentOS Web Panel. How to...

Upgrade MySQL Server in CWP

In this tutorial we will show you how to upgrade MySQL server in CentOS Web Panel.   1) Create...

Intalling PHP-SSH2 in CWP

This tutorial will help you to enable SSH2 in PHP. 1) Download and install libssh2. wget...

Install Apache 2.4 and suPHP 0.7.2 in CWP

In this tutorial we will show you how easily you can upgrade Apache 2.2 to 2.4 and suPHP 0.7.1 to...