if you are reading this its probably because you are like me. i wanted to know where i can find the php.ini file. i needed to know because i need to make some configuration changes to my PHP and i have a linux Centos (its basically the same as fedora or redhat) there two ways of finding out.

1. by default, the php.ini file is located at: /etc/php.ini

2. if for some reason its not in the /etc/ directory in your system, you can still find out where the php.ini file is located at. simply by running a phpinfo.php file in your system. basically create a php file and put this function in it:
echo phpinfo.php();

hope that helps