For SAPISAPI: php-fpm
There is noisn't any need to create a php.infophp.info file (it is not a good policy to leave it for the world to read anyway). On the command line:
php-fpm -i | more Somewhere in its output, it will show this line:
Configuration File (php.ini) Path => /etc Here is a more complete explanation: https://www.cloudinsidr.com/content/how-to-figure-out-your-php-configuration-parameters-without-info-php/How to Figure out Your PHP Configuration Parameters without info.php