<div dir="ltr"><div>For some reason it is still enabled</div><div><a href="https://billing.precisionwebhosting.com/thephpinfo.php">https://billing.precisionwebhosting.com/thephpinfo.php</a></div><div><br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Ken Marcus<div>Precision Web Hosting, LLC</div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 13, 2024 at 1:43 PM Michael Stauber <<a href="mailto:mstauber@blueonyx.it">mstauber@blueonyx.it</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Ken,<br>
<br>
> Is there a way to disable opcache in php 8.1 ?<br>
<br>
Yes.<br>
<br>
If you want to turn it off globally, comment out all lines in <br>
/home/solarspeed/php-8.1/etc/php.d/opcache.ini or remove that config <br>
file entirely.<br>
<br>
Or if you want to leave open a way to enable it again in the future, <br>
just add this line to /home/solarspeed/php-8.1/etc/php.d/opcache.ini:<br>
<br>
opcache.enable=0<br>
<br>
But say you want to turn it off for a single Vsite only? And leave it on <br>
for others?<br>
<br>
Say the Vsite is named <a href="http://www.company.com" rel="noreferrer" target="_blank">www.company.com</a>, then create this file:<br>
<br>
/home/sites/<a href="http://www.company.com/php.d/opcache.ini" rel="noreferrer" target="_blank">www.company.com/php.d/opcache.ini</a><br>
<br>
And put this line in it:<br>
<br>
php_flag opcache.enable Off<br>
<br>
Then go to the GUI and in the Vsite management navigate to the PHP <br>
settings of that Vsite. Without changing anything hit "Save" and the <br>
settings from your /home/sites/<a href="http://www.company.com/php.d/opcache.ini" rel="noreferrer" target="_blank">www.company.com/php.d/opcache.ini</a> will be <br>
incorporated into whatever PHP config that particular site is using <br>
(Apache VirtualHost for DSO, php.ini for suPHP or PHP-FPM pool file if <br>
you're using PHP-FPM).<br>
<br>
-- <br>
With best regards<br>
<br>
Michael Stauber<br>
<br>
</blockquote></div>