Alternative PHP Cache, the full Chinese name is "Optional PHP Cache", is a component of PECL, which can be used to cache and optimize PHP code on the web server and improve server performance. It can be installed separately from PECL, and you can check whether it is installed correctly through phpinfo().
APC can significantly accelerate the speed of PHP applications. Its implementation principle is to cache the PHP intermediate code of opcode. Adding APC to the application can improve the response speed of the application and reduce the server load.
Here we introduce how to install APC.
?
1 |
|
?
1 |
|
?
1 |
|
?
1 |
|
After Apache restarts, the APC part will be included in php.ini, you can see it in phpinfo() To the output information:
The above introduces the installation of APC on ubuntu, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.