You should be able to find loaded php.ini
by running the following command in your terminal:
php -i | grep "Loaded Configuration File"
Or if you like, create a file called phpinfo.php
and place the following content:
<?php phpinfo();
then navigate to http://localhost/phpinfo.php
in your browser (assuming you are running this in your localhost) and find the "Loaded Configuration File" around the top section of the page.