I am using the following command to check for configuration file for PHP installation.
$ php --ini
But when I press enter, it is showing no output. It just comes to a new line without showing anything. Please help me in finding which configuration file is used by my PHP installation.

Basically, I am following the method shown in this link for verifying my PEAR installation.
That should work – it works on my PHP 5.2.19/win32 installation – and I don’t know why it isn’t working for you, but you can get the same info by either:
<?php phpinfo(); ?>– and loading it in a browser. This will show you a lot of information about your PHP installation, including information about the INI file(s) in use.php -ifrom the command line – this will give you the same information asphpinfo()through the terminal. This may not work, ifphp --iniis not working. You couldgrepthe output for instances ofini, e.g.php --i | grep iniSomething else that might be worth a try is redirecting the output of
php --inito a file, e.g.php --ini > phpini.txt.Which PHP version are you running?