From owner-freebsd-questions@FreeBSD.ORG Thu Jun 12 17:35:14 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9B8A4106567C for ; Thu, 12 Jun 2008 17:35:14 +0000 (UTC) (envelope-from alex.w474@gmail.com) Received: from wr-out-0708.google.com (wr-out-0708.google.com [64.233.184.245]) by mx1.freebsd.org (Postfix) with ESMTP id 592D08FC1C for ; Thu, 12 Jun 2008 17:35:14 +0000 (UTC) (envelope-from alex.w474@gmail.com) Received: by wr-out-0708.google.com with SMTP id 49so6901198wra.3 for ; Thu, 12 Jun 2008 10:35:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.232.13 with SMTP id e13mr24424anh.3.1213292113535; Thu, 12 Jun 2008 10:35:13 -0700 (PDT) Date: Thu, 12 Jun 2008 10:35:13 -0700 (PDT) In-Reply-To: X-IP: 82.207.118.178 References: <20080604142004.15d83a57@nogrod.nicoelro.net> <20080604083159.cbaafd2c.wmoran@potentialtech.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 btr.unisquad.com:6128 (squid/2.5.STABLE14) Message-ID: <76563221-170c-4756-aa26-e16b8c3a7386@c58g2000hsc.googlegroups.com> From: AlexW474 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: use a specific php.ini for php cli X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jun 2008 17:35:14 -0000 On Jun 12, 5:24 pm, AlexW474 wrote: > On Jun 4, 3:31 pm, Bill Moran wrote: > > > > > In response to Nicolas Letellier : > > > > Hello. > > > > I would like to know if it is possible to have anotherphp.ini forphp > > > command line? I have aphp.ini with many restrictions (open_basedir, > > > disabled functions, etc...) used byapache(and mod_php). > > > > I would like to user anotherphp.ini file forphpcommand line (I don't > > > want to have disabled functions or safe_mode for command linephp). > > > > I use php5 in the port tree. > > >From 'manphp': > > > --php-ini path|file > > -c path|file Look forphp.ini file in the directory path or use the > > specified file > > You can use this instruction:http://www.witsuite.com/support/knowledge-base/manual-installation/in... > > It clearly shows how to use differentphp.ini forApachePHPandPHP > CLI. > You can even create a few bat files with different environment. BTW, this instruction is for Windows, but the approach is suitable for FreeBSD as well. > > Regards, > Alex > _______________________________________________ > freebsd-questi...@freebsd.org mailing listhttp://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"