Re: Where is php.ini located by default?
| From: | Erica Douglass | Date: | Sat, 28 Apr 2001 05:42:41 +0000 |
| Subject: | Re: Where is php.ini located by default? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-50730@lists.php.net to get a copy of this message | ||
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"" <php-general@phpbeginner.com> wrote in message
news:LOEHKALHBJBLDDBLJBNJEEEJCMAA.php-general@phpbeginner.com...
> /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)
> maxim@phpbeginner.com
> www.phpbeginner.com
>
>
>
>
> -----Original Message-----
> From: Martin Skjoldebrand [mailto:chimbis@skjoldebrand.org]
> Sent: Saturday, April 28, 2001 1:38 PM
> To: php-general@lists.php.net
> 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: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>