Get the App
SLTechnology News&Howtos  ›  Development  › 

How to solve the problem that PHP opcache is not effective

Shulou Source: shulou.com Published: 2022-06-02 06:33:22 11月01日 Update

This article mainly explains "how to solve the problem that PHP opcache is not effective". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "how to solve the problem that PHP opcache is not effective".

The solution that PHP opcache does not take effect: 1, check "/ usr/local/php/conf.d/004-opcache.ini"; 2, modify the required parameters.

This article operating environment: Windows7 system, PHP7.4 version, Dell G3 computer.

How to solve the problem that PHP opcache is not effective?

The process in which Opcache modification configuration does not take effect:

There is always a very thorny problem when installing Nextcloud: official requirements

Opcache.max_accelerated_files=10000

However, modify the php.ini file according to the official documentation (

/ usr/local/php/etc/php.ini) always does not take effect, so pass

Php-I | grep opcache

Query to another configuration file for opcache

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

Just modify the required parameters.

At this point, I believe you have a deeper understanding of "how to solve the problem that PHP opcache does not take effect". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Questions content parameters official documents learning query configuration practical deeper thorny interest method course practicality practicality simple operation documentation method time Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei vpn Xiaomi Docker Linux