Download and istall:
$ wget http://pecl.php.net/get/APC-3.0.14.tgz
$ tar -xvzf APC-3.0.14.tgz
$ cd APC-3.0.14
$ phpize
$ ./configure –enable-apc
$ make
# make install
Add the below lines to the php.ini:
extension=/path/to/apc.so
apc.enabled=1
apc.shm_segments=1
apc.optimization=0
apc.shm_size=128
apc.ttl=7200
apc.user_ttl=7200
apc.num_files_hint=1024
apc.mmap_file_mask=/tmp/apc.XXXXXX
apc.enable_cli=1
Restart apache: # service httpd restart
If you enjoy our post, feel free to subscribes to our rss feeds















