Page 1 of 1

Opcache settings ?

Posted: Tue 24. Mar 2026, 13:06
by amarc
Hello,

where can I adjust current opcache settings for PHP versions ? Where are 'defaults' located ? For example opcache.max_accelerated_files and opcache.memory_consumption ?

Is /opt/keyhelp/php/x.x/etc/conf.d/01-opcache.ini right way to adjust this ? What will happen to this file on updates ?


ty.

Re: Opcache settings ?

Posted: Tue 24. Mar 2026, 21:17
by Daniel
Hello,

you can just insert the opcache settings in the same submenu as like "disable_functions" for php.
Just edit at the "User Administration" the related user where you need to set opcache values and follow with "</> PHP".
Then scroll down to "Additional PHP directives" and insert opcache values.

I provide you a example:

Code: Select all

opcache.enable_cli=1
opcache.interned_strings_buffer=20
opcache.max_accelerated_files=3000
opcache.memory_consumption=64M
opcache.save_comments=1
opcache.revalidate_freq=1
opcache.validate_timestamps = 0
output_buffering = off