title: php_mcrypt extension for windows server 2008 R2
body: <p>I found lots of articles about this problem, however none of them helped me.</p>
  
  <p>Here is a I list of what I 've already tried:</p>
  
  <ul>
  <li>uncomment the semicolon on php.ini</li>
  <li>add the dependence file (libmcrypt.dll) on php folder, windows and
  windows/system32</li>
  <li>I 've restarted the IIS Server after each attempt</li>
  <li>I cannot use <a href="http://blogs.iis.net/donraman/archive/2009/10/16/configuring-php-extension-on-windows-a-simple-way.aspx" rel="nofollow noreferrer">this method</a>, it was installed with a zip file.</li>
  </ul>
  
  <p>On IIS Manager the extension is shown as enabled but checking the php error log I found this message multiple times:</p>
  
  <pre><code>PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\PHP\v5.3\ext\php_mcrypt.dll' - %1 is not a valid Win32 application. in Unknown on line 0
  </code></pre>
  
  <p>Here is a the screenshot of phpinfo()
  <img src="https://i.stack.imgur.com/eou7Z.jpg" alt="phpinfo-mcrypt"></p>
  
  <p>I have Windows Server 2008 R2 64bit with IIS 7.5 and PHP 5.3.10. Maybe the file (php_mcrytp.dll) is not the good one, where can I download it? On <a href="http://windows.php.net/download/" rel="nofollow noreferrer">php site</a> I cannot find the php_mcrytp.dll file under ext folder.</p>
  
  <p>Thank you</p>