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.
I have Apache/2.4.9 installed, and I have installed php56 and mcrypt through brew: brew install autoconf php56 mcrypt php56-mcrypt
and all the additional dependencies.
PHP version: php -v
: PHP 5.6.3 (cli) (built: Nov 25 2014 17:28:36).
Now, the PHP configuration files are the following:
php -i | grep \.ini\$
Loaded Configuration File => /usr/local/etc/php/5.6/php.ini
Additional .ini files parsed => /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"
So it's loaded, right? The ouput should confirm this:
php -m | grep mcrypt
mcrypt
php -i | grep mctypt
mcrypt
mcrypt support => enabled
mcrypt_filter support => enabled
mcrypt.algorithms_dir => no value => no value
mcrypt.modes_dir => no value => no value
This should confirm that the PHP installation & configuration part should be OK!
Now, the Apache part. I have modified my /private/etc/apache2/httpd.conf file, that now has the following line:
LoadModule php5_module /usr/local/opt/php56/libexec/apache2/libphp5.so
sadly, <?php echo phpinfo(); ?>
is not what I want because it does not show the mcrypt section. A Magento website gives me Fatal error: Call to undefined function mcrypt_module_open() in /Library/WebServer/Documents/wow/lib/Varien/Crypt/Mcrypt.php
.
I am seriously desperate. I am a Linux user, all that I had to do was sudo apt-get install php5-mcrypt
. Now it's the whole day that I fight with this problem on Mac OS X. Any help is really appreciated.