Editing opcache settings

Got a warning about opcache.interned_strings_buffer and whilst it’s gone away, I’m interested in where you add settings about opcache. In the php.ini file it says this:

; see /etc/php.d/10-opcache.ini

Does this mean that 10-opcache.ini contains examples of the settings or that php is reading settings from that file, i.e. any changes should be made there?

@robnicholsonmalt this is not Nextcloud specific and it means that you should add your configuration to the file mentioned in the comment. You can have the config all in one file (php.ini) or in several files in the /etc/php.d/ directory :slight_smile:

1 Like

Thanks for that. My knowledge if PHP on Linux is a little sketchy. I spotted the warning during the monthly update check. After a restart, the warning has gone away so I’m tempted to leave it alone until next month. If it’s not broken, don’t fix it :slight_smile: But worthwhile to know in future.