Re: Where does PHP look for php.ini??

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

 



On 7/6/07, Tijnema <tijnema@xxxxxxxxx> wrote:
Completely missed it LOL, it looks for it in /usr/lib :S
Is that normal?

i beleive it depends on the OS/distribution.  on gentoo php.ini is located
at
/etc/php/apache2-php5
Here is a bit of output from phpinfo() on a gentoo box of mine [w/ no
changes to php.ini]

Configuration File (php.ini) Path /etc/php/apache2-php5
Loaded Configuration File /etc/php/apache2-php5/php.ini
Scan this dir for additional .ini files /etc/php/apache2-php5/ext-active
additional .ini files parsed /etc/php/apache2-php5/ext-active/http.ini,
/etc/php/apache2-php5/ext-active/mcve.ini,
/etc/php/apache2-php5/ext-active/memcache.ini

-nathan

On 7/6/07, Tijnema <tijnema@xxxxxxxxx> wrote:

On 7/7/07, Stut <stuttle@xxxxxxxxx> wrote:
> Tijnema wrote:
> > I just noted that my php (CLI and Apache2 SAPI) doesn't read my
php.ini
> > in /etc
> > I have compiled php with --prefix=/usr, and my /usr/etc is symlinked
> > to /etc, but it doesn't read the php.ini file..
> > when I use the CLI with -c /etc it works fine :)
>
> php -i on the command line, or phpinfo() in a SAPI script will tell you
> where it expects to find it, as well as whether it did find it.
>
> -Stut

Completely missed it LOL, it looks for it in /usr/lib :S
Is that normal?

Tijnema


--
Vote for PHP Color Coding in Gmail! -> http://gpcc.tijnema.info

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux