個人環境是 Windows 7 +php5.4.3+apache2.2php
什麼是APC我就不解釋了好奇的能夠本身去谷歌一下,下面重點說安裝擴展方法apache
1.下載合適本身版本的APC 擴展dll 文件,由於pecl4win.php.net已經中止運行,因此Windows用戶能夠從http://downloads.php.net/pierre/ 下載dll編譯版的apc。spa
2.PHP5.4 用戶建議下載.net
http://downloads.php.net/pierre/php_apc-3.1.10-5.4-vc9-x86.zipcode
3.解壓 php_apc-3.1.10-5.4-vc9-x86.zip 將裏面的php_apc.dll 複製到 php 的ext目錄下ip
4.修改php.ini文件 增長get
extension=php_apc.dllit
尾部增長io
[apc] apc.enabled = 1 apc.shm_segments = 1 apc.shm_size = 64 apc.optimization = 0 apc.num_files_hint = 1000 apc.ttl = 0 apc.gc_ttl = 3600 apc.cache_by_default = On apc.slam_defense = 0 apc.file_update_protection = 2 apc.enable_cli = 0 apc.stat=0
5.從新啓動IIS/apache編譯
6.phpinfo()打印
安裝與配置參考連接:http://www.sitebuddy.com/PHP/Accelerators/Alternative/Cache/APC