global vs. per-site php.ini settings
| From: | Tomasz Orzechowski | Date: | Mon, 16 Sep 2002 21:34:21 +0000 |
| Subject: | global vs. per-site php.ini settings | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-116569@lists.php.net to get a copy of this message | ||
Greetings,
while it is easy to set the php-as-module settings on a per-vhost case
using php_admin_flag and php_admin_value it seems to be much harder to
achieve same for CGI. I have gotten PHP/CGI to read site-specific INI
files, but it then subsequently ignores the 'global' INI settings set
in the php.ini file referenced by --with-config-file-path ./configure
parameter - which is exactly opposite to what I would like it to do.
questions:
- is there a way to make PHP/CGI parse _multiple_ .ini files
if so - in what what overrides what, what is the sequence?
- is there a way to 'include' a 'global' .ini file into the
per-site files, other that of putting the statements from
the global one in the site-specific one? i don't want to
have to change every site-specific config when/if i need
to change a 'global' setting (register_globals comes to
mind)
any help will be most appreciated, thank you in advance
--
Tomasz Orzechowski tmo@apk.net
APK.net systems administration team TO630