Date: Thu, 12 Jun 2008 10:35:13 -0700 (PDT) From: AlexW474 <alex.w474@gmail.com> To: freebsd-questions@freebsd.org Subject: Re: use a specific php.ini for php cli Message-ID: <76563221-170c-4756-aa26-e16b8c3a7386@c58g2000hsc.googlegroups.com> In-Reply-To: <e5e4b92e-0c05-4ef8-af0d-98a9653197db@m36g2000hse.googlegroups.com> References: <20080604142004.15d83a57@nogrod.nicoelro.net> <20080604083159.cbaafd2c.wmoran@potentialtech.com> <e5e4b92e-0c05-4ef8-af0d-98a9653197db@m36g2000hse.googlegroups.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Jun 12, 5:24 pm, AlexW474 <alex.w...@gmail.com> wrote: > On Jun 4, 3:31 pm, Bill Moran <wmo...@potentialtech.com> wrote: > > > > > In response to Nicolas Letellier <nico...@nicoelro.net>: > > > > 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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?76563221-170c-4756-aa26-e16b8c3a7386>