Home  >  Article  >  Backend Development  >  How to solve the problem of PHP opcache not taking effect

How to solve the problem of PHP opcache not taking effect

藏色散人
藏色散人Original
2021-12-16 09:30:092859browse

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

, 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

/usr/local/php/conf.d/004-opcache.ini

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!

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