php opcache variables not set correctly

岁酱吖の 提交于 2019-12-13 07:36:29

问题


I'm trying to set the variables to setup 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 look in 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 does not take my variables???


回答1:


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



来源:https://stackoverflow.com/questions/47622243/php-opcache-variables-not-set-correctly

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!