In many instances, locating the active php.ini file is very simple. Run the following command to view the instances of php.ini, including “Loaded Configuration File”:
No matter what control panel you are using, the complete way to find what php.ini file to edit for specific domain is by the following:
Create file inside your site, name it for example info.php, with content:
Open the file in your browser window, like http://domain.tld/info.php
Search for line Loaded Configuration File, which will show you full path to php.ini file.