How To Find Your PHP.INIBy Angsuman Chakraborty, Gaea News Network
Wednesday, November 16, 2005
I often come across this question: Where is my php.ini located? Here is a simple solution.
To find out which php.ini your apache server is using please follow the steps below:
1. Type in the following in a file named say test.php and save it in document root of your webserver, normally htdocs for apache:
<?php phpinfo(); ?>
2. Load the file in your browser. For example if you access your home page like:
3. Search for php.ini in the response text. On that line you will find the full path to your php.ini