[PHP] PHPINIDir in Apache 1.x, extension/zend_extension in php_admin_value

2004-02-10 Thread David Garamond
1. Why does the Apache 1.x SAPI doesn't provide the PHPINIDir directive? 
Is it due to some kind of limitation in Apache 1.x?

2. Can we load extension with php_admin_value, e.g.:

 php_admin_value extension /usr/lib/php4/imap.so
 php_admin_value zend_extension /usr/lib/php4/php_accelerator_1.3.3r2.so
I can't seem to do this. I want to setup several different Apache 
running on a different port and different Unix user. Each mod_php4 in 
this Apache is differently tuned. What's the best way to do this (I 
don't want to have to configure + build mod_php4 for each of these 
Apache instances, just so that I can specify php.ini path for each; 
that's silly).

--
dave
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHPINIDir in Apache 1.x, extension/zend_extension in php_admin_value

2004-02-10 Thread David Garamond
David Garamond wrote:
1. Why does the Apache 1.x SAPI doesn't provide the PHPINIDir directive? 
Is it due to some kind of limitation in Apache 1.x?

2. Can we load extension with php_admin_value, e.g.:

 php_admin_value extension /usr/lib/php4/imap.so
 php_admin_value zend_extension /usr/lib/php4/php_accelerator_1.3.3r2.so
I can't seem to do this. I want to setup several different Apache 
running on a different port and different Unix user. Each mod_php4 in 
this Apache is differently tuned. What's the best way to do this (I 
don't want to have to configure + build mod_php4 for each of these 
Apache instances, just so that I can specify php.ini path for each; 
that's silly).
I've found a solution to my problem, using PHPRC environment variable.

--
dave
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] PHPINIPATH/PHPINIDIR/PHPININAME?

2004-11-14 Thread David Garamond
I wonder why the CLI version of PHP doesn't consult environment 
variables to override some default settings. This mechanism is used by 
all the other interpreters that I use (e.g.: perl with PERLLIB/etc, 
python with PYTHONHOME/PYTHONPATH/etc, ruby with 
RUBYOPT/RUBYLIB/RUBYPATH/etc).

PS: I am aware of -c. It would be nice to have something like 
PHP_INI_PATH/PHP_INI_DIR/PHP_INI_NAME though...

Regards,
dave
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHPINIPATH/PHPINIDIR/PHPININAME?

2004-11-14 Thread David Garamond
Greg Donald wrote:
On Sun, 14 Nov 2004 21:53:52 +0700, David Garamond
<[EMAIL PROTECTED]> wrote:
I wonder why the CLI version of PHP doesn't consult environment
variables to override some default settings. This mechanism is used by
all the other interpreters that I use (e.g.: perl with PERLLIB/etc,
python with PYTHONHOME/PYTHONPATH/etc, ruby with
RUBYOPT/RUBYLIB/RUBYPATH/etc).
PS: I am aware of -c. It would be nice to have something like
PHP_INI_PATH/PHP_INI_DIR/PHP_INI_NAME though...
print_r($_ENV);
What should I see in it?
--
dave
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHPINIPATH/PHPINIDIR/PHPININAME?

2004-11-14 Thread David Garamond
Jordi Canals wrote:
On Sun, 14 Nov 2004 23:42:58 +0700, David Garamond
<[EMAIL PROTECTED]> wrote:
Greg Donald wrote:

print_r($_ENV);
What should I see in it?
RTFM
http://www.php.net/manual/en/reserved.variables.php#reserved.variables.environment
Um, am I missing something here? ITTRFMTR (is that the right fine manual 
to read?)

I originally asked why the php cli binary cannot be told to look for 
php.ini in a custom location specified via an environment variable (it 
only accepts the -c command line argument). All other interpreters I 
know can. So if there _is_ an env var to do that, what is it? I didn't 
see it and certainly strace doesn't show my /usr/bin/php doing any 
getenv() during startup.

Regards,
dave
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php