warning - Message
error - This page is a candidate for deletion
If you disagree with its deletion, please explain why at Category talk:Candidates for speedy deletion or improve the page and remove the
This notice should remain for a minimum of 1 week after it was placed on the page. If a discussion is still ongoing, it should remain until a consensus is reached or a decision has been made about the removal, after which the page will either be deleted or this notice removed.Remember to check what links here and the the page history before deleting.
How to find the php.ini file
The most simple and portable way to find the php.ini file that's actually being used is to use phpinfo().
Since there may be more than one file named info.php, this avoids the case where you edit a info.php that is not really used by PHP.
Be aware that the settings in php.ini usually apply to all PHP processes. You can configure this per vhost, but it requires manual work. So whatever you do to your php.ini file, will apply to ALL other apps, websites and projects that also run on this computer / server and use the same PHP version.
Create a file in your web root (for example info.php) with this content:
Now open this page in your browser, and look for the line Configuration File (php.ini) Path in the first block of output telling you which php.ini is loaded.
You can use the find program to find all the php.ini files on your system.
find / -name "php.ini"
You can use the locate program to find all the php.ini files in the locate database (which may not always be up to date).
As with most configuration files, php.ini should reside in /etc.