Last active
August 29, 2015 14:18
-
-
Save jdeagle/462d92cfcc29c7d2db6c to your computer and use it in GitHub Desktop.
OSX install mcrypt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://stackoverflow.com/questions/9343151/where-is-php-ini-in-mac-os-x-lion-thought-it-was-in-usr-local-php5-lib | |
Answers from @Cronk and @Justin got me close on Mac OS X 10.9 Mavericks. In fact, on my system the /etc/php.ini file was missing completely, and it wasn't until I ran phpinfo() on the web server that I observed there was no configuration file. Copying the file from /etc/php.ini.default and adding the fully qualified path to the mcrypt.so library to the config file solved the problem: | |
cp /etc/php.ini.default /etc/php.ini | |
Then in /etc/php.ini add the following line (using the correct path to your mcrypt.so file): | |
extension="/usr/local/Cellar/php54-mcrypt/5.4.29/mcrypt.so" | |
Then restart Apache2: | |
apachectl restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment