Opcache: Difference between revisions

No edit summary
m Text replacement - "<(\/?)source" to "<$1syntaxhighlight"
 
Line 3: Line 3:
However, if you ever need to reset a few, you could use sed, with a quick <code>apachectl -k graceful</code> to reload apache.
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">
<syntaxhighlight lang="bash">
# as root
# as root
myini=/etc/php.ini
myini=/etc/php.ini
Line 11: Line 11:
sed -i s/\;opcache.fast_shutdown=0/opcache.fast_shutdown=1/ $myini
sed -i s/\;opcache.fast_shutdown=0/opcache.fast_shutdown=1/ $myini
apachectl -k graceful
apachectl -k graceful
</source>
</syntaxhighlight>


You can even turn off the opcache if you want
You can even turn off the opcache if you want


<source lang="bash">
<syntaxhighlight lang="bash">
# as root
# as root
myini=/etc/php.ini
myini=/etc/php.ini
Line 21: Line 21:
sed -i s/opcache.enable_cli=1/opcache.enable_cli=0/ $myini
sed -i s/opcache.enable_cli=1/opcache.enable_cli=0/ $myini
apachectl -k graceful
apachectl -k graceful
</source>
</syntaxhighlight>


{{References}}
{{References}}