Knowledge Base Hub

Browse through our helpful how-to guides to get the fastest solutions to your technical issues.

Home  >  Dedicated Server FAQ  >  How to Install APC on Linux Server?
Top Scroll

How to Install APC on Linux Server?

 2 min

The Alternative PHP Cache (APC) is a free and open opcode cache for PHP. It’s goal is to provide a free, open, and robust framework for caching and optimizing PHP intermediate code.

Download latest APC from pecl.

# cd /usr/local/src/
# wget

Extract the downloaded APC and compile it.

# tar -xvf APC
# cd APC-*
# phpize
# ./configure
# make && make install

Now, you will have to enable the extension in php.ini on your server. Below command will give you the exact server’s php.ini

# php -i | grep php.ini

Add “” & restart apache.

To check if it is compiled properly, use command below OR create a phpinfo & check the output.

# php -i | grep apc

You can install APC on our VPS Hosting and Dedicated Servers.


For our Knowledge Base visitors only
Get 10% OFF on Hosting
Special Offer!
Claim the discount before it’s too late. Use the coupon code:
Note: Copy the coupon code and apply it on checkout.