Where is php.ini?

From the Linux command line:

To determine the location of php.ini, run the following (Linux only):

php -r "phpinfo();" | grep Configuration

 

 

From Drupal:

The easiest way is to install the Devel Module, which has an option to run PHPinfo() and display the results in the browser.