Saturday, August 13, 2011

How to Install APC(Alternate PHP Caching)

The Alternative PHP Cache (APC) is a free, open, and robust framework for caching and optimizing PHP intermediate code. It's an PECL extension which shares the packaging and distribution system with PEAR. We need to have PEAR installed in our system.
To install APC in ubuntu, we have to write the following command:
sudo pecl install apc
I was facing a problem 'pcre.h: No such file or directory' when installing APC. For this you need to run the following command:
apt-get install libpcre3-dev
Then you try to install APC again. And it will be installed successfully. Then you have to enable APC extension by adding the following in php.ini file:
extension = apc.so
See the book OpenCart 1.4 Template Design Cookbook. See the book Joomla Mobile Development Beginners Guide