Introduction to APC
The alternative PHP cache (APC) is a free and open opcode Cache for PHP. Its goal are to provide a free, open, and robust frameworks for caching and optimizing PHP intermediate code.
APC Official website: http://www.php.net/manual/en/book.apc.php
Win under the latest version of the download address: http://downloads.php.net/pierre/
Download Connection: Http://downloads.php.net/pierre/php_apc-3.1.4-5.3-VC6-x86.zip use the corresponding DLL according to your PHP compiled version
APC Configuration
APC configuration mainly explains the configuration under win, the configuration of Linux under the category of online articles more
1. Download Php_apc.dll to the ext directory of PHP
2. Modify PHP.ini Add Extension=php_apc.dll
Add a configuration entry at the end of the php.ini
; APC Setting
[APC]
; Open stat will complain
; apc.stat=0
Apc.enabled= "1″
Apc.shm_segments= "1″
, here's the problem, where the default memory configuration has been modified WIN7 error, do not know that you have not met?
; apc.shm_size= "128″
; apc.ttl=7200
; apc.user_ttl=7200
; Correction parameters
Apc.ttl= "300″
Apc.user_ttl= "300″
Apc.num_files_hint= "1024″
Apc.mmap_file_mask= "E:/WAMP/TMP/APC. XXXXXX "
Apc.enable_cli= "1″
3. Restart the Apache server to see if there are any APC configuration items in the Phpinfo, and the configuration is successful.
APC Control Panel, control file from apc-3.1.4.tgz
Before caching is used
After using the cache
Problems:
1. OpCode cache cleanup issues under fcgi?