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 =
See the book OpenCart 1.4 Template Design Cookbook. See the book Joomla Mobile Development Beginners Guide

List of my works:

Opencart Extensions:

  1. Product Based Quantity Wise Shipping: Find it here.
  2. OpenSSLCOMMERZ: integrate SSLCOMMERZ with opencart: Find it here.
  3. Fine Search v.1.0 - Improves Opencart search feature to find relevant: Find it here.
  4. Opensweetcaptcha - An easy way to generate attractive captcha for your system!: Find it here.
  5. Custom Field Product - add unlimited custom fields to the product form: Find it here.
  6. Formcaptcha - add captcha on the register page: Find it here.

My Books:

  1. OpenCart 1.4 Template Design Cookbook.
  2. Joomla Mobile Development Beginners Guide


reseller hosting reviews said...

Very inspirational post. I used to love to take walks, but I would let my mind “trick” me into thinking that “just today, I should rest, but I’ll walk tomorrow.”
Eventually I stopped doing my walks. But reading your post it looks like you are totally motivated! That’s cool! If I may ask about this posting.
reseller hosting reviews

Tahsin Hasan said...

More simpler is to use:

sudo apt-get install php-apc