To identify the php.ini file that has been used, we could write a file with a phpinfo() function and extract the info.
Create file with phpinfo(); inside
echo '<?php phpinfo(); ?>' > info.php
Check the file in web browser
And we have the exact php.ini file used for the web server.