First, it is necessary to perform the library installation Mcrypt
Ubuntu/Debian:
sudo apt-get install php53-mcrypt ou php54-mcrypt
Go to the archive php.ini
decrypt the lib php_mcrypt.so
In the OSX: (and I need to have the Homebrew installed)
brew install php53-mcrypt ou php54-mcrypt
Note: If it does not find the package, Homebrew looks for an alternative and shows if it finds a repository to download. Simply add the repository or simply write the way it was passed in Brew install that it should install right. Also maybe it needs to install to zlib that it does not have in the repository when trying to install from Brew but it will inform a repository that can be used.
Homebrew may not install for lack of other libraries that need to be added to the part, just google for Brew and the library name.
After installing should go on:
cd /private/etc
sudo mv php.ini.default php.ini
sudo {editor de preferencia} php.ini
Inside add file in extensions:
extension="/usr/local/Cellar/php53-mcrypt/5.3.28/mcrypt.so"
Modify the version as needed, and restart apache
sudo apachectl restart
In Windows, it will depend on whether you are using a Bundle like wamp. In this one I need to define which libraries should be active for php.
Maybe this link will help you set up for wamp:
wamp setup for mcrypt
and wikihow
Ubuntu: sudo apt-get install php5-mcrypt. Fixed the problem.
– Away
you can mark the answer as correct then...
– hernandev