[Consolidate the PHP basic series] install php apc and yumapc on yum in linux

Source: Internet
Author: User

[Consolidate the PHP basic series] install php apc and yumapc on yum in linux

Alternative PHP Cache (optional PHP Cache) depends on the PECL extension Library

 

 

Use the source code to install yum:
First install the apc dependency package:
Yum install php-pear php-devel httpd-devel pcre-devel gcc make


Then install apc using pecl:
Pecl install apc


Add apc extension to configuration file:
Echo "extension = apc. so">/etc/php. d/apc. ini


Remember to restart the server:
Service httpd restart, and then use PHP's phpinfo () function to detect:

 

Reference:

1) install php apc in yum in linux

2) use Yum to quickly install nginx + php-fpm + apc

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.