Introduction of 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 framework for caching and optimizing PHP intermediate code.
APC Official website: http://www.php.net/manual/en/book.apc.php
Download the latest version of Win: 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 build version
APC Configuration
APC configuration is mainly explained in the configuration under win, the configuration of the class Linux online article more
1. Download Php_apc.dll to the ext directory of PHP
2. Modify PHP.ini Add Extension=php_apc.dll
Add a configuration item at the end of the php.ini
; APC Setting
[APC]
The stat will be error-activated.
; apc.stat=0
Apc.enabled= "1″
Apc.shm_segments= "1″
Here's the problem here, modify the default memory configuration WIN7 error, do not know what you have encountered?
; 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 then the configuration is successful.
APC Control Panel, control files from apc-3.1.4.tgz
Before caching is used
After using the cache
Problems:
1. OpCode cache cleanup problem under fcgi?
http://www.bkjia.com/PHPjc/322570.html www.bkjia.com true http://www.bkjia.com/PHPjc/322570.html techarticle APC introduces the alternative PHP cache (APC) is a free and open opcode Cache for PHP. Its goal are to provide a free, open, and robust framework for caching and optimizing PHP inter ...