Open main menu

Changes

926 bytes added ,  18:40, 19 September 2017
Created page with "Opcache settings for the Zend Engine are notoriously undocumented. So we try to choose good defaults for QualityBox. The book 'Scaling PHP' has some good explanations<ref>ht..."
Opcache settings for the Zend Engine are notoriously undocumented. So we try to choose good defaults for QualityBox. The book 'Scaling PHP' has some good explanations<ref>https://www.scalingphpbook.com/blog/2014/02/14/best-zend-opcache-settings.html</ref>

However, if you ever need to reset a few, you could use sed, with a quick <code>apachectl -k graceful</code> to reload apache.

<source lang="bash">
# as root
myini=/etc/php.ini
sed -i s/opcache.interned_strings_buffer=4/opcache.interned_strings_buffer=16/ $myini
sed -i s/opcache.revalidate_freq=30/opcache.revalidate_freq=0/ $myini
sed -i s/opcache.validate_timestamps=1/opcache.validate_timestamps=0/ $myini
sed -i s/\;opcache.fast_shutdown=0/opcache.fast_shutdown=1/ $myini
apachectl -k graceful
</source>

{{References}}

[[Category:System Administration]]
[[Category:DevOps]]
[[Category:Apache]]
[[Category:PHP]]
[[Category:Performance]]
[[Category:QualityBox]]
4,558

edits