What php.ini I should modify?

I need to tune some php settings in php.ini file (for php-fpm, opcache and apc).
But in folder /etc/php/8.2/ I have folders apache2, cli and fpm and in each there is file php.ini.
Also, I have folder mods-available with a lot of other *.ini files including apcu.ini and opcache.ini.
So my question is, where I shoud put my modifications?
Thanks a lot!

If you use apache with the apache php module, you change apache2, if it is php-fpm with apache or nginx you change fpm. And if you need to change settings to run php from command line (e.g. to run the occ command), it is the cli one.

2 Likes

Also see Admin Manual: PHP Modules & Configuration - php.ini configuration notes.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.