Plethora of php.ini files
<p>I installed PHP on an Ubuntu server to find there are six php.ini files in my file system.</p>

<p>I'd like to get this right, so can anyone explain what the distinct purpose is of each file?</p>

<p>My hunch is that <code>/etc/php5</code> are the actual files being used by PHP, and <code>/usr/share/php5</code> are suggestions for how you should edit <code>etc</code> depending on your environment (so you would copy/paste stuff from <code>usr</code> into <code>etc</code>, but I may be wrong about this). It is also unclear what <code>production-dist</code> and <code>production.cli</code> implies compared to <code>production</code>.</p>

<pre><code>/etc/php5/cgi/php.ini
/etc/php5/cli/php.ini
/usr/share/php5/php.ini-development
/usr/share/php5/php.ini-production
/usr/share/php5/php.ini-production-dist
/usr/share/php5/php.ini-production.cli
</code></pre>

<p>Thanks in advance!</p>
