Manual 12 - Install php accelerator Zend OPcache_PHP tutorial
php 5.4
wget http://pecl.php.net/get/zendopcache-7.0.2.tgz tar xzf zendopcache-7.0.2.tgz cd zendopcache-7.0.2 phpize ./configure make make install
PHP5.5 is already built-in, just configure it directly
zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20100525/opcache.so ;上面zend_extension路径为opcache.so的路径 opcache.memory_consumption=128 opcache.interned_strings_buffer=8 opcache.max_accelerated_files=4000 opcache.revalidate_freq=60 opcache.fast_shutdown=1 opcache.enable_cli=1
/usr/local/php/sbin/php-fpm //Start
You can check whether it takes effect through phpinfo. The picture below is my configured PHP extension:

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



This article brings you relevant knowledge about PHP opcache. It mainly talks about how to understand the OPCache function and how to use it. Friends who are interested can take a look below. I hope it will be helpful to everyone.

How to install opcache in centos php: 1. Execute the "yum list php73* | grep opcache" command; 2. Install opcache through "yum install php73-php-opcache.x86_64"; 3. Use "find / -name opcache.so" Just find the location of "opcache.so" and move it to php's extension directory.

By optimizing OPcache configuration, PHP application performance can be improved. Optimization includes: setting a reasonable opcache.memory_consumption size, increasing the value of opcache.max_accelerated_files, enabling opcache.revalidate_freq, disabling opcache.optimization_level

How to use ACL (AccessControlList) for permission control in Zend Framework Introduction: In a web application, permission control is a crucial function. It ensures that users can only access the pages and features they are authorized to access and prevents unauthorized access. The Zend framework provides a convenient way to implement permission control, using the ACL (AccessControlList) component. This article will introduce how to use ACL in Zend Framework

PHP implementation framework: ZendFramework introductory tutorial ZendFramework is an open source website framework developed by PHP and is currently maintained by ZendTechnologies. ZendFramework adopts the MVC design pattern and provides a series of reusable code libraries to serve the implementation of Web2.0 applications and Web Serve. ZendFramework is very popular and respected by PHP developers and has a wide range of

Analysis of the underlying development principles of PHP7: In-depth understanding of the working principle of OPcache. In recent years, with the development of the Internet, the number of web page visits has continued to increase, and the performance requirements for the website have also increased. As a commonly used server-side programming language, PHP has attracted much attention in dealing with performance issues under high load conditions. The release of the PHP7 version has improved performance to a new level, mainly due to one of the new features: OPcache. OPcache is an intermediate cache introduced in PHP7 to speed up PH

PHP7 performance optimization tips: How to use opcache to speed up script execution Introduction: PHP is a widely used server-side scripting language. Its flexibility and ease of use make it the first choice for building dynamic web pages and applications. However, PHP's performance can become a bottleneck when handling a large number of concurrent requests. In order to solve this problem, we can use opcache to speed up the execution of scripts, thus improving the performance of PHP. What is opcache? Opcache is a built-in part of PHP

PHP does not recognize ZendOptimizer, how to solve it? In PHP development, sometimes you may encounter a situation where PHP cannot recognize ZendOptimizer, which will cause some PHP codes to not run properly. In this case, we need to take some measures to solve the problem. Some possible workarounds are described below, along with specific code examples. 1. Confirm whether ZendOptimizer is installed correctly: First, we need to confirm that ZendOptimizer
