[UPHPU] PHP 5 and local php.inis
Brandon Stout
bms at mscis.org
Tue Mar 27 00:00:51 MDT 2007
Brandon Stout wrote:
> Velda,
>
> Go to your master php.ini file, and add something like this to the
> include_path directive:
>
> /home/*/www/
I might have confused this. the include_path directive will include
scripts, but I'm not sure about ini files. Probably not. This is what
I was thinking of before I confused myself... On a php 5 install, use
this ./configure option:
--with-config-file-scan-dir=/home/*/www/
Reference: http://www.php.net/manual/en/configure.php
Where you already have it installed, or perhaps you don't want to use
that parameter, there are other options:
PHPIniDir directive in Apache 2
php_ini parameter in NSAPI
PHP_INI_PATH environment variable in THTTPD
The PHPRC environment variable
Some Windows registry settings
Finally, "Since PHP 5.1.0, it is possible to refer to existing .ini
variables from within .ini files. Example: open_basedir =
${open_basedir} ":/new/dir"."
Reference: http://www.php.net/manual/en/configuration.php
Brandon Stout
http://mscis.org
More information about the UPHPU
mailing list