Ubuntu Installation APC

Source: Internet
Author: User
Tags apc phpinfo
Alternative PHP Cache Chinese full name is "optional PHP caching", is a component of pecl, can be used to cache and optimize the PHP code on the Web server, improve server performance. Can be installed separately from the PECL and can be checked by phpinfo () to see if the installation is correct.

APC can significantly accelerate the speed of PHP applications, the principle is to cache opcode PHP intermediate code, adding APC in the application can improve the response speed of the application, reduce server load.

Below we describe how to install APC.

1. First install the necessary packages



sudoapt-get installphp-pear php5-dev apache2-threaded-dev

2. Install APC:



sudopecl installapc-3.1.6

3. Create the configuration file/etc/php5/conf.d/apc.ini content as follows:




4. Restart Apache:




After Apache restarts, the APC section will be included in the php.ini, and you can see the output information in Phpinfo ():

The above describes the Ubuntu installation APC, including the aspects of the content, I hope that the PHP tutorial interested in a friend 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.