Project

General

Profile

Actions

"Fixing PHP OPcache Configuration Issue in Nextcloud"

The PHP OPcache module is not properly configured. See the documentation ↗ for more information.
The OPcache interned strings buffer is nearly full. To assure that repeating strings can be effectively cached, it is recommended to apply opcache.interned_strings_buffer to your PHP configuration with a value higher than 8.

The location of the php.ini file can vary depending on your operating system and PHP installation. Here are some common locations for the file:

On Linux systems using PHP installed via a package manager, the php.ini file is typically located in /etc/php/<version>/php.ini, where <version> is the installed PHP version (e.g. /etc/php/7.4/php.ini).

Find the following and set to the below values

opcache.save_comments = 1

opcache.revalidate_freq = 60

opcache.interned_strings_buffer=16


After modifying the php.ini file, you will need to restart your web server or PHP-FPM service for the changes to take effect. This is necessary to ensure that the updated configuration settings are loaded into memory.

The exact steps to restart the web server or PHP-FPM service may vary depending on your server configuration and operating system. Here are some common commands to restart these services:

To restart Apache web server:

sudo service apache2 restart

Updated by Gareth Eaton about 1 year ago · 4 revisions