title: PHP doesn't load extensions specified in php.ini, but loads with dl()
body: <p>Php doesn't load extensions specified through php.ini</p>
  
  <p><code>php -v</code> doesn't give any errors or warnings</p>
  
  <p><code>php -i | grep extension_dir</code> shows that extension_dir is set to where extension files are, but they don't show up in extension list in <code>php -m</code></p>
  
  <p>However running <code>php -r 'dl("apc.so"); phpinfo();' | grep apc</code> shows that modules load normaly with <code>dl()</code> function.</p>
  
  <p>I installed php-5.3.5 from source.
  Configured with</p>
  
  <pre><code>'--enable-fastcgi'
  '--enable-fpm'
  '--enable-mbstring'
  '--enable-pdo'
  '--enable-inline-optimization'
  '--enable-sockets'
  '--enable-zip'
  '--enable-mbregex'
  '--enable-xml'
  '--enable-sysvsem'
  '--enable-sysvshm'
  '--enable-pcntl'
  '--enable-ftp'
  '--enable-soap'
  '--enable-shmop'
  '--disable-rpath'
  '--disable-debug'
  '--with-mcrypt'
  '--with-zlib'
  '--with-curl'
  '--with-bz2'
  '--with-mysql'
  '--with-gettext'
  '--with-gd'
  '--with-pdo-mysql'
  '--with-pcre-regex'
  '--with-mhash'
  '--with-pic'
  '--with-zlib-dir'
  '--with-ttf'
  '--with-openssl'
  '--with-png-dir'
  '--with-libdir=lib64'
  '--without-pdo-sqlite'
  '--without-sqlite'
  </code></pre>
  
  <p><code>uname -a</code> prints:</p>
  
  <pre><code>Linux ip-*-*-*-* 2.6.34.7-56.40.amzn1.x86_64 #1 SMP Fri Oct 22 18:48:49 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux
  </code></pre>
  
  <p>Php runs on nginx 0.9.5 through php-fpm</p>