If I'm not mistaken, the "locate" command uses a cache which is only updated
every 24 hours or so. You can either recreate locate's cache by reading
locate's man pages, or you can actually search the filesystem by using the
following commands:

cd / (go to the root directory)
find . -name php.ini

The last command actually searches the filesystem at the time the command is
executed, instead of relying on a cached database like the locate command.
Of course, if the file has been on your system for a while and has not
recently changed location, you should probably use locate because the search
will be faster.

Also, another tip: To make sure you know where the configuration file is
going to be, compile PHP with this option:

./configure --with-config-file-path=/etc/httpd (or wherever you would like
to place your file.)

Erica

""PHPBeginner.com"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> /usr/lib/php
> is the default configuration... if I am not worng... 'cause I have some
> memory leaks recently :-)
>
> have you tried :
> # locate php.ini
> # locate php.ini-dist
>
> while on windows it should be located in WINNT directory (on NT/2K). It
will
> ask YOU to move them there during the installation.
>
>
> Sincerely,
>
>  Maxim Maletsky
>  Founder, Chief Developer
>
>  PHPBeginner.com (Where PHP Begins)
>  [EMAIL PROTECTED]
>  www.phpbeginner.com
>
>
>
>
> -----Original Message-----
> From: Martin Skjoldebrand [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, April 28, 2001 1:38 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Where is php.ini located by default?
>
>
> I've built php from a tarball. Now I need to specify a special include
path
> in the php.ini file. But I can't find it. There is a php.in-dist in the
> build catalog but I can't find a production php.ini anywhere.
> The docs says that it should be in the install catalogue (which is where?,
> /usr/local/lib/php doesn't have one) or the cwd. I've tried editing the
> sample file and putting it in either place but my app still gives me the
> following error:
>
> Failed opening required 'class.DBI' (include_path='.:/usr/local/lib/php')
> in FILENAME
>
> Martin S.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to