From owner-freebsd-questions@FreeBSD.ORG Thu Jun 12 14:34:46 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 00A1F106571D for ; Thu, 12 Jun 2008 14:34:46 +0000 (UTC) (envelope-from alex.w474@gmail.com) Received: from yx-out-2122.google.com (yx-out-2122.google.com [74.125.44.25]) by mx1.freebsd.org (Postfix) with ESMTP id BC1668FC1C for ; Thu, 12 Jun 2008 14:34:45 +0000 (UTC) (envelope-from alex.w474@gmail.com) Received: by yx-out-2122.google.com with SMTP id 35so1182643yxh.13 for ; Thu, 12 Jun 2008 07:34:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.150.152.17 with SMTP id z17mr52951ybd.25.1213280666102; Thu, 12 Jun 2008 07:24:26 -0700 (PDT) Date: Thu, 12 Jun 2008 07:24:26 -0700 (PDT) In-Reply-To: <20080604083159.cbaafd2c.wmoran@potentialtech.com> 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: 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 14:34:46 -0000 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/install-php.php#configure-php-to-use-in-command-prompt It clearly shows how to use different php.ini for Apache PHP and PHP CLI. You can even create a few bat files with different environment. Regards, Alex