The default location of php.ini is a compile time option (see the FAQ entry), but can be changed for the CGI and CLI version with the -c command line switch, see the chapter about using PHP from the command line.
Vous pouvez voir l'état de votre configuration en utilisant la fonction phpinfo().