From owner-freebsd-questions@FreeBSD.ORG Wed Jun 4 12:32:45 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 E4CEF1065672 for ; Wed, 4 Jun 2008 12:32:45 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from mail.potentialtech.com (internet.potentialtech.com [66.167.251.6]) by mx1.freebsd.org (Postfix) with ESMTP id B3BC98FC30 for ; Wed, 4 Jun 2008 12:32:45 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from vanquish.ws.pitbpa0.priv.collaborativefusion.com (pr40.pitbpa0.pub.collaborativefusion.com [206.210.89.202]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.potentialtech.com (Postfix) with ESMTPSA id 61E22EBC08; Wed, 4 Jun 2008 08:32:44 -0400 (EDT) Date: Wed, 4 Jun 2008 08:31:59 -0400 From: Bill Moran To: Nicolas Letellier Message-Id: <20080604083159.cbaafd2c.wmoran@potentialtech.com> In-Reply-To: <20080604142004.15d83a57@nogrod.nicoelro.net> References: <20080604142004.15d83a57@nogrod.nicoelro.net> X-Mailer: Sylpheed 2.4.8 (GTK+ 2.12.9; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions 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: Wed, 04 Jun 2008 12:32:46 -0000 In response to Nicolas Letellier : > Hello. > > I would like to know if it is possible to have another php.ini for php > command line? I have a php.ini with many restrictions (open_basedir, > disabled functions, etc...) used by apache (and mod_php). > > I would like to user another php.ini file for php command line (I don't > want to have disabled functions or safe_mode for command line php). > > I use php5 in the port tree. >From 'man php': --php-ini path|file -c path|file Look for php.ini file in the directory path or use the specified file -- Bill Moran http://www.potentialtech.com