How to solve the problem of PHP opcache not taking effect

藏色散人
Release: 2023-03-14 13:32:01
Original
2927 people have browsed it

Solution to PHP opcache not taking effect: 1. Check "/usr/local/php/conf.d/004-opcache.ini"; 2. Modify the required parameters.

How to solve the problem of PHP opcache not taking effect

#The operating environment of this article: Windows 7 system, PHP version 7.4, Dell G3 computer.

How to solve the problem of PHP opcache not taking effect?

The process of Opcache modification configuration not taking effect:

After installing Nextcloud I always encounter a very difficult problem: the official requirement is

opcache.max_accelerated_files=10000
Copy after login

, but the php.ini file is modified according to the official document (

/usr/local/php/etc/php.ini ) always does not take effect, so query another configuration file of opcache through

php -i |grep opcache
Copy after login

/usr/local/php/conf.d/004-opcache.ini
Copy after login

Just modify the required parameters

Recommended learning: "PHP Video tutorial

The above is the detailed content of How to solve the problem of PHP opcache not taking effect. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template