Mcrypt PHP extension required. Laravel, Xampp error
Solution 1:
The desired Mcrypt PHP extension
is packaged in a different package, namely php5-mcrypt
. To get this package installed on your machine, you can use apt-get
, like this:
sudo apt-get install php5-mcrypt
In addition, PHP extensions have to be registered with the correct Server API (SAPI); there is a command-line tool called php5enmod
provided by the packager to simplify this process; e.g.
sudo php5enmod mcrypt
will add the correct extension=mcrypt.so
line to all the relevant php.ini
files.
Solution 2:
Enable the PHP mcrypt module before installing Laravel.
Using the command: sudo php5enmod mcrypt