PHP opcode Cache APC Detailed description

Source: Internet
Author: User
Tags apc apc configuration
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?

The above describes the PHP opcode cache APC Detailed introduction, including the aspects of the content, I hope to be interested in PHP tutorial friends helpful.

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.