Re: use a specific php.ini for php cli

2008-06-12 Thread AlexW474


On Jun 4, 3:31 pm, Bill Moran [EMAIL PROTECTED] wrote:
 In response to Nicolas Letellier [EMAIL PROTECTED]:

  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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: use a specific php.ini for php cli

2008-06-12 Thread AlexW474
On Jun 12, 5:24 pm, AlexW474 [EMAIL PROTECTED] wrote:
 On Jun 4, 3:31 pm, Bill Moran [EMAIL PROTECTED] wrote:



  In response to Nicolas Letellier [EMAIL PROTECTED]:

   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
 ___
 [EMAIL PROTECTED] mailing 
 listhttp://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


use a specific php.ini for php cli

2008-06-04 Thread 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.

Thanks for your informations.

-- 
 - Nicolas.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: use a specific php.ini for php cli

2008-06-04 Thread Bill Moran
In response to Nicolas Letellier [EMAIL PROTECTED]:

 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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]