Home
Unix-Linux Administration
Database
Programming
Advanced Search
Resources
Contact Us
Home arrow Unix-Linux Administration arrow How to Install arrow How to Install APC Cache
How to Install APC Cache Print
Feb 20, 2009 at 10:53 PM

Work with Apache,php install with compile

APC Cache http://pecl.php.net/package/APC seems to work well with PHP

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

edit php.ini

vi /usr/local/lib/php.ini

comment line extension_dir from extension_dir ="./" to  ;extension_dir ="./"

 

affter ;extension=php_zip.dll

Add

extension="/usr/local/lib/php/extensions/no-debug-non-zts-20060613/apc.so"
apc.shm_size = 32