Mantis - php5
Viewing Issue Advanced Details
4271 regular use feature N/A 2010-02-14 15:34 2012-02-05 15:30
skayser  
bwalton  
normal  
closed  
fixed  
none    
none  
0004271: RFE: Add additional config file directory for module/local configuration
PHP can be built with --with-config-file-scan-dir=/path/to/dir so that the PHP interpreter will scan an additional directory for php.ini style configuratin files. Our PHP currently doesn't use this, how about adding it?

This would have two benefits:
* Users could put local php.ini configurations in this directory, no need to hack the php.ini itself
* Our php5 module packages wouldn't need to fiddle with php.ini any more, but could simply drop their configuration file in the directory

I am not quite sure about the directory though, /etc/opt/csw/php/conf.d perhaps?

If config files are read recursively from this dir, we could put our modules in /etc/opt/csw/php/conf.d/modules. Or even introduce a Debian apache2 like module activation/deactivation handling with /etc/opt/csw/php/conf.d/mods-available and /etc/opt/csw/php/conf.d/mods-enabled which can be maintained with phpenmod, phpdismod.
# pkgparam CSWphp5 VERSION
5.2.9,REV=2009.05.06
Issue History
2010-02-14 15:34 skayser New Issue
2011-06-29 03:47 bwalton Status new => assigned
2011-06-29 03:47 bwalton Assigned To => bwalton
2011-06-29 03:49 bwalton Note Added: 0009154
2012-02-05 15:30 bwalton Note Added: 0009582
2012-02-05 15:30 bwalton Status assigned => closed
2012-02-05 15:30 bwalton Resolution open => fixed

Notes
(0009154)
bwalton   
2011-06-29 03:49   
Hi Sebastian,

I'd fiddled with this before I saw the RFE. I'm not going to add it for the pending release, but will put it on the todo list for subsequent updates. I don't see a way to make the default config split the modules out into separate files...that would be sweet as you suggest.

Thanks
-Ben
(0009582)
bwalton   
2012-02-05 15:30   
The php5 packages now support /etc/opt/csw/php5/conf.d. Core modules don't use this but non-core modules can now easily deposit their config here without altering config files they don't own.