Opcache settings ?
Opcache settings ?
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 ?
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
Daniel Marckardt
**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
https://www.keyweb.de - https://www.keyhelp.de
**************************************************************
Re: Opcache settings ?
Code: Select all
Non-overwritable directivesty.
Re: Opcache settings ?
Alexander Mahr
**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Re: Opcache settings ?
I have this setting:
Code: Select all
opcache.memory_consumption=256
opcache.interned_strings_buffer=16
opcache.max_accelerated_files=10002
opcache.revalidate_freq=0
opcache.validate_timestamps=0
opcache.save_comments=1
opcache.jit_buffer_size=0M
opcache.jit=disableCode: Select all
opcache.max_accelerated_filesCode: Select all
opcache.interned_strings_bufferCode: Select all
opcache.memory_consumptionThis is in users php-fpm.d/*.conf:
Code: Select all
; PHP immutable directives
php_admin_value[upload_tmp_dir] = /home/users/w4821/tmp/
php_admin_value[soap.wsdl_cache_dir] = /home/users/w4821/tmp/
php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i
php_admin_value[memory_limit] = 256M
php_admin_value[max_execution_time] = 120
php_admin_value[post_max_size] = 72M
php_admin_value[upload_max_filesize] = 64M
php_admin_value[open_basedir] = /home/users/w4821/www:/home/users/w4821/files:/home/users/w4821/tmp
php_admin_value[disable_functions] = apache_child_terminate, apache_note, apache_setenv, curl_multi_exec, define_syslog_variables, dl, exec, link, openlog, passthru, pcntl_exec, pcntl_fork, pcntl_setpriority, popen, posix_getpwuid, posix_kill, posix_mkfifo, posix_setpgid>
php_admin_value[opcache.memory_consumption] = 256
php_admin_value[opcache.interned_strings_buffer] = 16
php_admin_value[opcache.max_accelerated_files] = 10002
php_admin_value[opcache.revalidate_freq] = 0
php_admin_value[opcache.validate_timestamps] = 0
php_admin_value[opcache.save_comments] = 1
php_admin_value[opcache.jit_buffer_size] = 0M
php_admin_value[opcache.jit] = disableAny ideas what could it be ?