title: PHP Warning: PHP Startup: Unable to load dynamic library '...' failed to map segment from shared object: Cannot allocate memory in Unknown on line 0
body: <p>Im getting the following on my developer machine.</p>
  
  <pre><code>PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/gd.so' - /usr/lib/php5/20100525/gd.so: failed to map segment from shared object: Cannot allocate memory in Unknown on line 0
  PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/mcrypt.so' - /usr/lib/php5/20100525/mcrypt.so: failed to map segment from shared object: Cannot allocate memory in Unknown on line 0
  PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/mysql.so' - /usr/lib/php5/20100525/mysql.so: failed to map segment from shared object: Cannot allocate memory in Unknown on line 0
  PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/mysqli.so' - /usr/lib/php5/20100525/mysqli.so: failed to map segment from shared object: Cannot allocate memory in Unknown on line 0
  PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/pdo_mysql.so' - /usr/lib/php5/20100525/pdo_mysql.so: failed to map segment from shared object: Cannot allocate memory in Unknown on line 0
  PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/imagick.so' - /usr/lib/php5/20100525/imagick.so: failed to map segment from shared object: Cannot allocate memory in Unknown on line 0
  </code></pre>
  
  <p>Any ideas on what is going on here? I'm running mediawiki and for each pageload these warnings appear. </p>
  
  <p>The files referenced in the warning messages exists and i've tried raising the memory_limit directive in php.ini to no avail. Any suggestions on how i can proceed with this?</p>
  
  <p>Regardless of these warnings, the web application seems to take no harm.</p>