Location Of Php.ini Configuration File In Linux
- Forums
- PHP
- Location Of Php.ini Configuration File In Linux
this page will show you where is the location of the configuration file php.ini in php in a linux computer system [2113], Last Updated: Mon Jun 24, 2024
Sammer
Sun Nov 27, 2011
0 Comments
655 Visits
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:
<?php
echo phpinfo.php();
?>
hope that helps