Difference between revisions of "Change OPcache interned strings buffer size globally"
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
 (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...")  | 
				|||
| Line 4: | Line 4: | ||
You can create a file in the <code>mods-available</code> folder and enable it.  | You can create a file in the <code>mods-available</code> folder and enable it.  | ||
The only downside to this is, if you install a newer PHP version, you might have to repeat the process.  | {{warning}} 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 ===  | === /etc/php/8.1/mods-available/local-opcache.ini ===  | ||
Revision as of 11:30, 7 February 2024
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