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:

2. Load the file in your browser. For example if you access your home page like:
http:/// then you will access this file as http:///test.php

3. Search for php.ini in the response text. On that line you will find the full path to your php.ini