To find out where your php.ini is located

PHP
run: php --ini
Source

Also in PHP: