I can't change the opcache values
I'm trying to modify the opcache settings, but when I check with phpinfo(), the changes I make don't seem to take effect.
I've tried using the MultiPHP INI Editor, and also editing the opcache.ini file for the corresponding PHP version.
Is there anywhere else I should check that I might be missing?
-
Hey there! Previous posts from me seem to confirm that the local .ini created by the Multi PHP INI Editor on the account should immediately take affect.
Does your PHP Info page in a browser confirm that it is reading the correct ini file? It should give you the "Loaded Configuration File" path if you search near the top of that page as well as "Scan this dir for additional .ini files"
If not, do you see anything in the .htaccess that could be overriding these settings?
0 -
Hmm, I forgot to mention that I'm trying to do this server-wide from WHM. I haven't tested it on an individual cPanel account.
0 -
Thanks for the clarification. I would still expect that to work - in fact, that should be even easier as it should automatically apply to all the domains without you needing to do anything else.
Where/how are you creating the PHP info to check - just on a random account on the machine?
0 -
I'm having the same issue with this. I'm trying to adjust the opcache values server wide but they are not being implemented. I've edited both the /opt/cpanel/ea-php81/root/etc/php.ini file and the /opt/cpanel/ea-php81/root/etc/php.d/10-opcache.ini file itself to try and get it to work but no matter what I do they do not work. I am running Litespeed, not sure if that makes a difference. A test page with phpinfo() on it doesn't reflect the changes no matter what I do.
0
Please sign in to leave a comment.
Comments
4 comments