Skip to content

Instantly share code, notes, and snippets.

@pmkhoa
Created August 16, 2017 06:27
Show Gist options
  • Save pmkhoa/4b0321274b688c31584b87c72031245d to your computer and use it in GitHub Desktop.
Save pmkhoa/4b0321274b688c31584b87c72031245d to your computer and use it in GitHub Desktop.
$brew install brew install mcrypt php54-mcrypt
Copy default php.ini.default to php.ini
$sudo cp /private/etc/php.ini.default /private/etc/php.ini
Add this line to php.ini file extension section - please verify extension path with install location in your machine
extension="/usr/local/Cellar/php54-mcrypt/5.3.26/mcrypt.so"
Restart your apache server
$apache restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment