Your Webhosting Questions
Answered by the Webhosting Experts

How to Install Alternative PHP Cache (APC) on your Server?

Step a: Login to your server as root.


Step b: Download the APC



eg : wget


Step c: Extract it over to your server

tar -xzf APC-3.0.15.tgz

cd APC*

Step d: Check the PHP location by running the below command:

which php

Step e: Create the configuration files using the below command


Stepf: Now the APC need to be compiled over the server :

./configure –enable-apc –enable-apc-mmap –with-apxs –with-php-config=/usr/local/bin/php-config


make install

Note : You must install the APC in the php.ini file

Step g: Below command would help you to find the php.ini over the server :

php -i | grep php.ini

Step h : Amend php.ini by adding APC extension, as stated below :

vi /usr/local/Zend/etc/php.ini

Step I : Add the following to the php.ini file


Step J : Restart apache

service httpd restart

Need More Personalized Help?

If you have any further issues, questions, or would like some assistance checking on this or anything else, please reach out to us from your account and provide your server credentials within the encrypted field for the best possible security and support.

If you are unable to reach your account or if you are on the go, please reach out from your valid account email to us here at: [email protected]. We are also available to you through our phone and live chat system 24/7/365.

Tags +