Change OPcache interned strings buffer size globally
Revision as of 11:24, 7 February 2024 by Discorddigital (talk | contribs) (Created page with "== Prologue == In some cases you may need to define a higher <code>interned_strings_buffer</code> than given by the default PHP configuration. You can create a file in the <c...")
Prologue
In some cases you may need to define a higher interned_strings_buffer
than given by the default PHP configuration.
You can create a file in the mods-available
folder and enable it.
The only downside to this is, if you install a newer PHP version, you might have to repeat the process.
/etc/php/8.1/mods-available/local-opcache.ini
1 opcache.interned_strings_buffer=16
Enable it with following command:
phpenmod local-opcache
# You may need to restart your services to make this work.
# systemctl restart apache2
# systemctl restart php8.1-fpm.service