ID: 33728
User updated by: phpbugs at thequod dot de
Reported By: phpbugs at thequod dot de
Status: Open
Bug Type: Feature/Change Request
PHP Version: 5.0.4
New Comment:
I don't see what it would help in the situation where you
want to have a common main php.ini for all vhosts or
subgroups thereof and just override some values on a
per-host basis..
--with-config-file-scan-dir would be a static path,
wouldn't it?
The only solution I could imagine to use
--with-config-file-scan-dir=\$CONF_PHP so that $CONF_DIR
could be set in the fastcgi starter/wrapper script. But I
don't think that it's supposed to work like that.
As it seems, what I'll have to do is write a script that
scans for files like php_override.ini in the vhost
directories and merges them into a single php.ini file.
Previous Comments:
------------------------------------------------------------------------
[2006-01-04 02:46:52] [EMAIL PROTECTED]
There's already this which can be used to accomplish pretty much same
thing:
--with-config-file-scan-dir=PATH
Set the path where to scan for
configuration files
------------------------------------------------------------------------
[2005-07-16 20:35:35] phpbugs at thequod dot de
Description:
------------
It would be very helpful in a CGI (or FastCGI) setup to have an include
directive for php.ini that includes a file where the directive occurs.
This way you could have a central php.ini for all virtual hosts and
include this in each virtual host's php.ini.
I know that with mod_php you can put most of the directives into
Apache's VirtualHost directives, but with mod_fastcgi/mod_cgi this is
not possible.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33728&edit=1