Re: php.ini
| From: | Anthony | Date: | Wed, 25 Jun 2003 15:53:26 +0000 |
| Subject: | Re: php.ini | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-152796@lists.php.net to get a copy of this message | ||
"Cpt John W. Holmes" <holmes072000@charter.net> wrote in message
news:005c01c33b2f$6e01f6b0$a629089b@TBHHCCDR...
>
> ----- Original Message -----
> From: "Jay Blanchard" <jay.blanchard@niicommunications.com>
> > [snip]
> > > I am running a red hat 9 linux box with Apache 1.3.27 with
> > > PHP 4 what is
> > >
> > > the default location for the php.ini file
> > [/snip]
> >
> > Create a page with just the following...
> >
> > <?php
> > phpinfo();
> > ?>
> >
> > place the page in your web root and access it through a browser. On
> > there you will find the path to your php.ini. The path is different for
> > differing distros and OS's and if it is CLI, CGI, or not.
>
> Also, as an FYI addition to this, if your PHP installation is not finding
a
> php.ini and using the defaults, you'll fine a _path_ to where PHP is
> expecting to find php.ini listed on the phpinfo() page. If a path to an
> actual php.ini file is listed, then that's the one it's using.
>
> ---John Holmes...
>
This is a good tip. Having more than one php.ini file can mess you up when
you don't know about it. Nothing like beating your head against the wall
wondering why things don;t work as they should :P
- Anthony