Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Jun 2008 08:31:59 -0400
From:      Bill Moran <wmoran@potentialtech.com>
To:        Nicolas Letellier <nicolas@nicoelro.net>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: use a specific php.ini for php cli
Message-ID:  <20080604083159.cbaafd2c.wmoran@potentialtech.com>
In-Reply-To: <20080604142004.15d83a57@nogrod.nicoelro.net>
References:  <20080604142004.15d83a57@nogrod.nicoelro.net>

next in thread | previous in thread | raw e-mail | index | archive | help
In response to Nicolas Letellier <nicolas@nicoelro.net>:

> 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



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