Re: php.ini not read?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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

[Index of Archives]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [Postgresql]     [PHP Books]     [PHP Databases]     [PHP SOAP]
  Powered by Linux