Opcache settings ?

General discussions around KeyHelp.
Post Reply
amarc
Posts: 49
Joined: Thu 7. May 2020, 18:56

Opcache settings ?

Post 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.
User avatar
Daniel
Keyweb AG
Posts: 149
Joined: Mon 25. Jan 2016, 04:42

Re: Opcache settings ?

Post 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
Mit freundlichen Grüßen / Best regards
Daniel Marckardt

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
https://www.keyweb.de - https://www.keyhelp.de
**************************************************************
Post Reply