Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jun 2007 16:32:59 -0500 (CDT)
From:      "Richard Lynch" <ceo@l-i-e.com>
To:        "James liu" <liuping.james@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: FreeBSD6: php.ini not find in phpinfo
Message-ID:  <60136.216.230.84.67.1181597579.squirrel@www.l-i-e.com>
In-Reply-To: <5d5204510706101749j593f54dbp689419d65a1b8942@mail.gmail.com>
References:  <5d5204510706101749j593f54dbp689419d65a1b8942@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, June 10, 2007 7:49 pm, James liu wrote:
> i use ports to default setup...
>
> web£ºlighttpd
>
> php: php5+php5-extensions
>
>
> cp /usr/local/etc/php.ini-recommended /usr/local/etc/php.ini
>
> restart lighttpd and phpinfo don't know php.ini.
>
> now i wanna config php moudel, but if no php.ini, i will do nothing.
>
> anyone know how to let phpinfo find php.ini?

phpinfo() output includes the directory name where it is looking for
php.ini

Put your php.ini file there.

You can also, in Apache2 and more recent versions of php, add a
configure directive to Apahce that tells PHP where to look for
php.ini.  It is named something like PHPIniDir, I believe.
http://apache.org

Note that PHP running as an Apache module reads the php.ini file only
once, when Apache STARTS UP.

You *must* re-start Apache to get your "new" or "changed" php.ini file
to be re-read.

If you are running as CGI, PHP is re-started on each page hit, and
reads php.ini at that time.

If you are running as FCGI, re-start the FCGI process should do it, I
would think, but never investigated...

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?60136.216.230.84.67.1181597579.squirrel>