If you're on a box with sufficient dev tools, strace can help.

strace php -v

Will yeild a lot of output, including:
open("/usr/local/bin/php-cli.ini", O_RDONLY) = -1 ENOENT (No such file
or directory)
open("/usr/local/lib/php-cli.ini", O_RDONLY) = -1 ENOENT (No such file
or directory)
open("/usr/local/bin/php.ini", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/php.ini", O_RDONLY) = 3

to tell you where it is eventually looking for the file. In my case,
as we can see on the last
line, it found it in "/usr/local/lib/php.ini"



paul

Reply via email to