To enable it, please go to php.ini file, search for ”extension=php_mcrypt.dll” and remove comment of this code, after that reload your server.
Hope this helps.
Also you can install Mcrypt from the PHP Source Tree as the extension.
But you should be absolutely sure that you have libmcrypt, libmcrypt-devel, and mcrypt installed and do the next:
# cd php-5.x.x/ext/mcrypt # phpize # aclocal # ./configure # make && make install
Then, please, enable the extension:
You should add
'extension=mcrypt.so' to PHP.ini
in order to do it.
And you will see Mcrypt working when you restart Apache.