Search our database

How To Install APC Cache

To install APC cache to your DirectaAdmin server, simply SSH to your server and run the following commands:

mkdir -p /ips1/apc
cd /ips1/apc
wget http://pecl.php.net/get/APC-3.1.11.tgz
tar xvfz APC-3.1.11.tgz
cd APC-3.1.11
phpize
./configure
make
make install
cp /usr/local/lib/php/extensions/no-debug-non-zts-20060613/apc.so /usr/local/lib/php/extensions/

After the installation is completed, you need to enable it in your php.ini.

# add the following code after tidy.clean_output = OFF # ——————–

extension = apc.so
[APC]
apc.enabled = 1    # Turn APC cache on
apc.optimization  = 0    # Experimental keep off
apc.shm_segments = 1    # Shared memory segments
apc.shm_size = 384M
apc.ttl = 7200
apc.user_ttl  = 7200
apc.num_files_hint = 1024
apc.mmap_file_mask = /tmp/apc.XXXXXX
apc.enable_cli = 1 # Allow command line php to function
apc.cache_by_default  = 1 # Enabled, 0 for filters
apc.max_file_size = 10M # Maximum cached file size
apc.stat = 1 # 1 for dev, 0 for production, whether the source file is checked for mod date
#apc.include_once_override = 1 # Use PHP5.3+ for include_once optimization

 

Malaysia’s Top Web Hosting Company

Visit http://www.ipserverone.com/.
Contact us @ +603-2026-1688 or email @ sales@ipserverone.com

Tags: , ,