title: Does each PHP-FPM Worker individually load php.ini?
body: <p>I installed PHP 5.3.8 from source on Ubuntu Natty. I also enabled FPM during configuration.</p>
  
  <p>However, I've been having issues installing PHP extensions. When I add the extension to my php.ini file (e.g. <code>extension=apc.so</code>) and restart PHP (i.e. <code>/etc/init.d/php-fpm restart</code>), I get an error like the one below:</p>
  
  <pre><code>Starting php-fpm PHP Warning:  Module 'apc' already loaded in Unknown on line 0
  &lt;br /&gt;
  &lt;b&gt;Warning&lt;/b&gt;:  Module 'apc' already loaded in &lt;b&gt;Unknown&lt;/b&gt; on line &lt;b&gt;0&lt;/b&gt;&lt;br /&gt;
  PHP Warning:  Module 'geoip' already loaded in Unknown on line 0
  &lt;br /&gt;
  &lt;b&gt;Warning&lt;/b&gt;:  Module 'geoip' already loaded in &lt;b&gt;Unknown&lt;/b&gt; on line &lt;b&gt;0&lt;/b&gt;&lt;br /&gt;
  PHP Warning:  Module 'imagick' already loaded in Unknown on line 0
  &lt;br /&gt;
  &lt;b&gt;Warning&lt;/b&gt;:  Module 'imagick' already loaded in &lt;b&gt;Unknown&lt;/b&gt; on line &lt;b&gt;0&lt;/b&gt;&lt;br /&gt;
  PHP Warning:  Module 'memcache' already loaded in Unknown on line 0
  &lt;br /&gt;
  </code></pre>
  
  <p>My PHP-FPM conf is has the setting <code>pm.start_servers = 5</code>, so I have about 5 PHP-FPM workers active. Are they all trying to load the php.ini file when I restart PHP (hence the message that the module has already been loaded)?! If they are, is there a way I can prevent that to stop the errors as it the errors become fatal when I load Zend Loader?</p>
  
  <p>Thanks in advance.</p>