title: mac os x 10.10.1, php mcrypt listed but does not work with apache
body: <p>Ok, I know that there are 2000 threads about this topic, but in the whole day I didn't find something related.
  I just want to enable mcrypt, I am using Apache on Mac OS X 10.10.1.</p>
  
  <p>I have Apache/2.4.9 installed, and I have installed php56 and mcrypt through brew: <code>brew install autoconf php56 mcrypt php56-mcrypt</code> and all the additional dependencies.
  PHP version: <code>php -v</code>: PHP 5.6.3 (cli) (built: Nov 25 2014 17:28:36).</p>
  
  <p>Now, the PHP configuration files are the following:</p>
  
  <pre><code>php -i | grep \.ini\$
  Loaded Configuration File =&gt; /usr/local/etc/php/5.6/php.ini
  Additional .ini files parsed =&gt; /usr/local/etc/php/5.6/conf.d/ext-mcrypt.ini
  
  cat /usr/local/etc/php/5.6/conf.d/ext-mcrypt.ini
  [mcrypt]
  extension="/usr/local/Cellar/php56-mcrypt/5.6.3/mcrypt.so"
  </code></pre>
  
  <p>So it's loaded, right?
  The ouput should confirm this:</p>
  
  <pre><code>php -m | grep mcrypt
  mcrypt
  php -i | grep mctypt
  mcrypt
  mcrypt support =&gt; enabled 
  mcrypt_filter support =&gt; enabled
  mcrypt.algorithms_dir =&gt; no value =&gt; no value
  mcrypt.modes_dir =&gt; no value =&gt; no value
  </code></pre>
  
  <p>This should confirm that the PHP installation &amp; configuration part should be OK!</p>
  
  <p>Now, the Apache part. I have modified my /private/etc/apache2/httpd.conf file, that now has the following line: </p>
  
  <pre><code>LoadModule php5_module /usr/local/opt/php56/libexec/apache2/libphp5.so
  </code></pre>
  
  <p>sadly, <code>&lt;?php echo phpinfo(); ?&gt;</code> is not what I want because it does not show the mcrypt section. A Magento website gives me <code>Fatal error: Call to undefined function mcrypt_module_open() in /Library/WebServer/Documents/wow/lib/Varien/Crypt/Mcrypt.php</code>.</p>
  
  <p>I am seriously desperate. I am a Linux user, all that I had to do was <code>sudo apt-get install php5-mcrypt</code>. Now it's the whole day that I fight with this problem on Mac OS X. Any help is really appreciated.</p>