php -i | grep "Loaded Configuration File"
php --ini
Find your php.ini file – you can use php -i | grep php.ini
for cmd : php --ini
for code : use php_ini_loaded_file() as :=
$inipath = php_ini_loaded_file();
if ($inipath) {
echo 'Loaded php.ini: ' . $inipath;
} else {
echo 'A php.ini file is not loaded';
}
1. Create test.php file with the following content
2. <?php phpinfo(); ?>
3. Put it in the root of the site (or in a public folder)
4. Open the file on your browser "domaine.com/test.php"
4. Look for "Loaded Configuration File"