Home > Article > Backend Development > Install PHP APC with yum under linux
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