Tuesday, July 20, 2010

How to install APC(alternative php cache) on 64 bit linux? machine

Guys,

Here are the steps those I followed :

=========
#cd /usr/local/src
#wget http://pecl.php.net/get/APC-3.0.14.tgz
#tar -xzvf APC-3.0.14.tgz
#cd APC-3.0.14
#phpize
#./configure --enable-apc --enable-apc-mmap --with-apxs --with-php-config=/usr/bin/php-config
#make
#make test
#make install

The extension will be stored inside "/usr/lib/php/extensions/no-debug-non-zts-20060613/".

Now, find php.ini file like : #php --ini
Add the extension="apc.so" at the last in php.ini file and restart apache.
=========

Note : You can install latest APC. Just search in google like : download APC-3.

That's it. try :)

No comments:

Post a Comment