:: How to install APC from source
|
0 1 2 3 4 5 |
wget http://pecl.php.net/get/APC tar xzf APC cd APC phpize ./configure --enable-apc --enable-apc-mmap make && make install |
:: Setup APC on php.ini
|
0 |
vi php.ini |
; add APC extension on php.ini, some like these:
|
0 1 2 3 4 5 6 7 8 |
extension=apc.so apc.enabled=1 apc.shm_segments=1 apc.shm_size=128M apc.ttl=7200 apc.user_ttl=7200 apc.num_files_hint=1024 apc.mmap_file_mask=/tmp/apc.XXXXXX apc.enable_cli=1 |
:: Checking and apply
|
0 1 |
php -m | grep apc /etc/init.d/httpd restart |
:: Link
+ Google
+ WebHostingNeeds
