Opcache php variables not set correctly

I am trying to set variables for setting opcahe in my php.ini file. phpinfo says:

Configuration File (php.ini) 
Path    /etc/php/7.0/fpm
Loaded Configuration File   /etc/php/7.0/fpm/php.ini 
Scan this dir for additional .ini files   /etc/php/7.0/fpm/conf.d 
Additional .ini files parsed    /etc/php/7.0/fpm/conf.d/10-mysqlnd.ini,

      

/etc/php/7.0/fpm/conf.d/10-opcache.ini,

/etc/php/7.0/fpm/conf.d/10-pdo.ini,
/etc/php/7.0/fpm/conf.d/15-xml.ini,
...

      

And / etc / php / 7.0 / fpm / conf.d / 10-opcache.ini contains:

zend_extension=opcache.so
opcache.enable=1
opcache.enable_cli=1
opcache.fast_shutdown=1
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=10000
opcache.memory_consumption=128
opcache.save_comments=1
opcache.revalidate_freq=1
opcache.file_cache=/tmp;

      

When I go through the phpinfo results for opcache I see:

opcache.enable  On  On
opcache.enable_cli  Off Off
opcache.max_accelerated_files   2000    2000
opcache.interned_strings_buffer 4   4
opcache.memory_consumption  64  64
opcache.revalidate_freq 2   2

      

Does anyone know why it is not accepting my variables ???

0


source to share


1 answer


Solved, but I really don't know how to do it. I just (re) installed php7-intl and php7-sqlite3 for other problems then the error messages regarding opcache disappeared



0


source







All Articles