ndzlogo-1-1
Loading ...

INDIA – HEADQUARTERS

INDIA

UNITED STATES

CANADA

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
extension=”apc.so”
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 https://pecl.php.net/package/APC and copy the download link
#wget https://pecl.php.net/get/APC-3.1.19.tgz
3) Extract the archive
#tar -xzf APC-3.1.19.tgz
cd APC-3.1.19
phpize
./configure –enable-apc –enable-apc-mmap –with-apxs –with-php-config=/usr/local/bin/php-config
make
make install
4) Check the PHP file location by
# php -i | grep php.ini
5) Add the extension in php.ini
extension=”apc.so”
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