How do I include a php.ini file in another php.ini file?
Seems you cannot include one ini file into another so it gets referenced and loaded. But you can set php up to load several files by telling it which folders to look into.
When using a FastCGI setup (possibly in FPM, too, though I don't know that for sure) you can export environment variables from within the php wrapper.
There you could do:
export PHP_INI_SCAN_DIR=/etc/php5/cgi/conf.d:/var/www/mydomain.net/etc
/var/www/mydomain.net/etc
is just an example, it's the folder where you put your additional ini files into. It seems this can be a :
separated list.
Use a phpinfo.php
(file called arbitrarily containing only ), open the corresponding URL in your browser and check the list of directories that are parsed and the list of files that get loaded in the top area of it.
/etc/php5/cgi/conf.d
should always be included (I guess because it was compiled into the php executable) and possibly not really be needed.