The sure way finding the php.ini file is using phpinfo:
Create an empty file and add the following to it:

Save it as anything.php (anything is really anything, replace it with anything you want)
Upload this file to your website and load it from a browser.
Look for “Configuration File (php.ini) Path”.
There you go. Feel free to comment here is you have any questions.
Leave a Reply