using apc on php

source : http://pecl.php.net/package/APC

reference site : http://www.electrictoolbox.com/install-apc-php-linux/

case : amazon linux ami

yum install php-devel php-pecl gcc
wget http://pecl.php.net/get/APC-3.1.9.tgz 
tar xvfj APC-3.1.9.tgz
cd APC-3.1.9
phpize
./configure
make
sudo make install

sudo vi /etc/php.d/apc.ini

extension="apc.so"
apc.enabled=1                       # default = 1
apc.shm_segments=1                  # default = 1
apc.shm_size=128                    # default = 30
apc.ttl=7200                        # default = 0
apc.user_ttl=7200                   # default = 0
apc.num_files_hint=1024             # default = 1000
apc.mmap_file_mask=/tmp/apc.XXXXXX  # default = no value
apc.enable_cli=1                    # default = 0

글쓴이

yupmin

Inside Deep Throat.

답글 남기기

이메일은 공개되지 않습니다. 필수 입력창은 * 로 표시되어 있습니다

This site uses Akismet to reduce spam. Learn how your comment data is processed.