Home  >  Article  >  Backend Development  >  Install PHP APC with yum under linux

Install PHP APC with yum under linux

高洛峰
高洛峰Original
2016-11-02 10:03:571367browse

Alternative PHP Cache (optional PHP cache), relies on the PECL extension library

Install using source code, just use yum:
First, install the apc dependency package:
yum install php-pear php-devel httpd-devel pcre-devel gcc make


Then use pecl to install apc:
pecl install apc


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


Finally, remember to restart the server:
service httpd restart, and then use PHP’s phpinfo() function to detect:

Reference documentation:

 1) Install PHP APC with yum under linux

 2) Use Yum Quickly install nginx+php-fpm+apc


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn