Skip to content

Instantly share code, notes, and snippets.

@foo9
Created February 19, 2015 08:28
Show Gist options
  • Save foo9/14a0045b2995a6438625 to your computer and use it in GitHub Desktop.
Save foo9/14a0045b2995a6438625 to your computer and use it in GitHub Desktop.
PHP mcrypt module install for Mac OS X Yosemite
$ brew search mcrypt
$ brew install homebrew/php/php55-mcrypt

$ php --ini
Configuration File (php.ini) Path: /etc
Loaded Configuration File:         (none)
Scan for additional .ini files in: /Library/Server/Web/Config/php
Additional .ini files parsed:      (none)

$ sudo mkdir -p /Library/Server/Web/Config/php
$ sudo ln -s /usr/local/etc/php/5.5/conf.d/ext-mcrypt.ini /Library/Server/Web/Config/php/ext-mcrypt.ini

$ sudo apachectl restart

$ php -m | grep mcrypt
mcrypt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment