PHP opcode Cache APC introduces _php tips in detail

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

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.