$ which mcrypt /opt/local/bin/mcrypt $ mcrypt -v Mcrypt v.0.9.9 (i386-apple-darwin10.4.0) Linked against libmcrypt v.2.5.8 Copyright (C) 1998-2002 Nikos Mavroyanopoulos (email@example.com)
So I have mcrypt. How do I get PHP to use it? Other than adding
to php.ini, I also see this in php.ini
[mcrypt] ; For more information about mcrypt settings see http://php.net/mcrypt-module-open ; Directory where to load mcrypt algorithms ; Default: Compiled in into libmcrypt (usually /usr/local/lib/libmcrypt) ;mcrypt.algorithms_dir= ; Directory where to load mcrypt modes ; Default: Compiled in into libmcrypt (usually /usr/local/lib/libmcrypt) ;mcrypt.modes_dir=
which is obviously unused.
How can I get mcrypt working for PHP?
This install is on Mac OS X 10.6, using MacPorts. I would prefer not to have to recompile php if possible.