I get that the .ini files in /etc/php5/cli
have to do with CLI usage of PHP, the files in /etc/php5/fpm
are about FastCGI/FPM aspect of PHP, but what about the .ini files located in /etc/php5/conf.d
?
Advertisement
Answer
From /usr/share/doc/php5-common/README.Debian.gz
(on an Ubuntu system with PHP installed):
Additionally, each SAPI is configured with the compile-time option
--with-config-file-scan-dir=/etc/php5/$SAPI/conf.dwhich for all SAPI’s is actually a symlink pointing to a central directory /etc/php5/conf.d. Any file found in this directory ending in .ini will be treated as a configuration file by the php SAPI.
The rationale with this method is that each SAPI can thus be identically configured with a minimal amount of conffile handling, but at the same time if you want to have SAPI-specific configuration, you can just remove the symlink.