< Browse > Home / Apache, PHP / Blog article: APC mem Cache installation

| Mobile | RSS

APC mem Cache installation

23rd Dec, 2008 | No Comment | Posted in Apache, PHP

php_snow_2008   APC MM cache is an most commonly used php accelerators 


Please follow the steps to install APC mem Cache

1. cd /usr/local/src
2. wget http://pecl.php.net/get/APC-3.0.14.tgz
3. tar -xzvf APC-3.0.14.tgz
4. cd APC-3.0.14


 
 checking  the location of phpize and php-config paths

finding the  Phpize binary location

whereis phpize

output looks like:

phpize: /usr/bin/phpize /usr/local/bin/phpize

whereis php-config

output looks like:

php-config: /usr/bin/php-config /usr/local/bin/php-config

5. execute the command to create the module


/usr/bin/phpize  ( or the path you got )

6.  compile  the APC by running following command 


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


Take note of where it copies apc.so file i.e.

/usr/lib/php/extensions/no-debug-non-zts-20020429/apc.so

10. Now locate php.ini type:


     php -i | grep php.ini


11. Edit php.ini


 Add these entries in the dynamic module section ( please note the extention path can be varied ) 

extension=”/usr/lib/php/extensions/no-debug-non-zts-20020429/apc.so”
apc.shm_size = 32

restart webserver . Check the php info page you can see the apc module listed .

Leave a Reply 227 views, 1 so far today
Tags: , ,

Leave a Reply

UNIXmandriva_demarragefreebsdfedora_core_6_screenshotubuntu-1280x1024imgcentos4Redhat-wave31suse-linux-logo-wallpapersi0ux_-_debian_gold_wallpaper