I have created a project in laravel but when I try to run it with php artisan serve I get this error: Mcrypt PHP extension required. I need some help
Asked
Active
Viewed 2,336 times
0
-
2`https://stackoverflow.com/questions/16830405/laravel-requires-the-mcrypt-php-extension` this link might be helpful – Lizesh Shakya Feb 25 '20 at 06:23
-
You can find a detailed answer [here](https://stackoverflow.com/questions/16830405/laravel-requires-the-mcrypt-php-extension). – Hirumina Feb 25 '20 at 06:25
-
You used ubuntu or windows where you get this error because for both command is different. – Arpit Jain Feb 25 '20 at 06:26
-
3Does this answer your question? [Laravel requires the Mcrypt PHP extension](https://stackoverflow.com/questions/16830405/laravel-requires-the-mcrypt-php-extension) – Sehdev Feb 25 '20 at 06:27
-
1Laravel removed the `mcrypt` requirement a long time ago. What version of Laravel are you using – apokryfos Feb 25 '20 at 07:08
2 Answers
0
Go to your php.ini file ebanle mycrypt extension. Check if mycrypt is present in your extension directory. if not found then download mycrpyt from https://pecl.php.net/ (Windows)
on Linux
$ sudo apt install php-dev libmcrypt-dev php-pear
$ sudo pecl channel-update pecl.php.net
$ sudo pecl install mcrypt-1.0.1

Abdullah Al Mamun
- 23
- 1
- 6