Opcache config from php.ini

opcache not picking up config from php.ini

For whatever reason when I make changes to the php.ini and reboot its not applying the changes to my php running configuration. Can someone well versed with this please help me?
[root@jackbox ~]# php73 -i | grep “php.ini”
Configuration File (php.ini) Path => /etc/opt/remi/php73
Loaded Configuration File => /etc/opt/remi/php73/php.ini
[root@jackbox ~]# cat /etc/opt/remi/php73/php.ini | grep opcache.max_accelerated_files
opcache.max_accelerated_files=10000
[root@jackbox ~]# php73 -i | grep “opcache.max_accelerated_files”
opcache.max_accelerated_files => 4000 => 4000

You might want to ensure the file you are changing is actually the one that it uses.

CLI and WebApps use different versions for one thing. To check which it uses, you want to do a,

php_info()

And check the ini file location.

1 Like

you where right. The file I needed to be changing was:
/etc/opt/remi/php73/php.d/10-opcache.ini

Thank you so much for getting me on the right path.

1 Like
Sponsor our Newsletter | Privacy Policy | Terms of Service