use a specific php.ini for php cli

Bill Moran wmoran at potentialtech.com
Wed Jun 4 12:32:46 UTC 2008


In response to Nicolas Letellier <nicolas at 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


More information about the freebsd-questions mailing list