nel php ini c'è la voce

Configuration File (php.ini) Path

che ti dice l'esatto file