Install APC php module on Linux server

The APC(Alternative PHP Cache) can be installed using PECL on linux cpanel server

1) Just execute following command from shell as root user
pecl install apc
and select the options  as per the requirement.
2) Update global php.ini with the apc extension
3) Restart apache service

Steps to install APC on Linux server manually using tarball
1) Login to the server as root from shell and go to
#cd /usr/local/src
2) Go to and copy the download link
3) Extract the archive
#tar -xzf APC-3.1.19.tgz
cd APC-3.1.19
./configure –enable-apc –enable-apc-mmap –with-apxs –with-php-config=/usr/local/bin/php-config
make install
4) Check the PHP file location by
# php -i | grep php.ini
5) Add the extension in php.ini
6) Restart Apache
7) Check the PHP modules
Note: If  the OS is Centos 5.5 then install pcre module if not present
# yum install pcre-devel


There are no revisions for this post.

Tags: , , , ,

No comments yet.

Leave a Reply