Home > Article > Backend Development > How to solve the problem of PHP opcache not taking effect
Solution to PHP opcache not taking effect: 1. Check "/usr/local/php/conf.d/004-opcache.ini"; 2. Modify the required parameters.
#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!