From owner-freebsd-questions@FreeBSD.ORG Mon Jun 11 21:32:56 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E029B16A46B for ; Mon, 11 Jun 2007 21:32:56 +0000 (UTC) (envelope-from ceo@l-i-e.com) Received: from o2.hostbaby.com (o2.hostbaby.com [67.139.134.202]) by mx1.freebsd.org (Postfix) with SMTP id BAF1713C48C for ; Mon, 11 Jun 2007 21:32:56 +0000 (UTC) (envelope-from ceo@l-i-e.com) Received: (qmail 16773 invoked by uid 98); 11 Jun 2007 21:32:59 -0000 Received: from 127.0.0.1 by o2.hostbaby.com (envelope-from , uid 1013) with qmail-scanner-2.01 (clamdscan: 0.88.7/3399. Clear:RC:1(127.0.0.1):. Processed in 0.07546 secs); 11 Jun 2007 21:32:59 -0000 Received: from localhost (HELO l-i-e.com) (127.0.0.1) by localhost with SMTP; 11 Jun 2007 21:32:59 -0000 Received: from 216.230.84.67 (SquirrelMail authenticated user ceo@l-i-e.com) by www.l-i-e.com with HTTP; Mon, 11 Jun 2007 16:32:59 -0500 (CDT) 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> Date: Mon, 11 Jun 2007 16:32:59 -0500 (CDT) From: "Richard Lynch" To: "James liu" User-Agent: Hostbaby Webmail MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD6: php.ini not find in phpinfo X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ceo@l-i-e.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jun 2007 21:32:57 -0000 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?