APC 安装下了最新的APC-3.0.18.tgz,解压,进入目录
APC下载地址
/usr/local/PHP/bin/PHPize (生产configure文件)
。/configure ——enable-APC ——enable-APC-mmap ——with-PHP-config=/usr/local/bin/PHP-config
Make make.Install
cp /usr/local/lib/PHP/extensions/no-debug-zts-20060613/APC.so /usr/local/lib/PHP/extensions/APC.so
chmod 755 /usr/local/lib/PHP/extensions/APC.so
配置/etc/PHP.ini 末尾加入
extension=APC.so
APC.enabled = 1
APC.cache_by_default = on
APC.shm_segments = 1
APC.shm_size = 128
APC.ttl = 7200
APC.user_ttl = 7200
APC.num_files_hint = 1024
APC.write_lock = On
APC.gc_ttl=3600
APC.ttl=0
APC.mmap_file_mask=/tmp/APC.XXXXXX
重启apache