需要 php 7 Mcrypt PHP 扩展 [英] php 7 Mcrypt PHP extension required
本文介绍了需要 php 7 Mcrypt PHP 扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
hello guys l have installed php7 from this link and this link too.
但是当我尝试运行基于 Laravel 的项目时,出现如下错误
but when i try to run a Laravel based project there is an error coming up as follows
需要 Mcrypt PHP 扩展.
Mcrypt PHP extension required.
我试图找到 mcrypt.so 并更改 mycrpt.ini 中的路径,但我仍然遇到相同的错误我只在 Laravel 项目中遇到此错误
I tried to locate mcrypt.so and change the path in mycrpt.ini but i still get the same error i only get this error i Laravel projects
推荐答案
有同样的问题 - PHP7 缺少 mcrypt.
Had the same issue - PHP7 missing mcrypt.
这在 Ubuntu 中对我有用请尝试以下命令.
This worked for me in Ubuntu Please try below commands.
sudo apt-get update
sudo apt-get install mcrypt php7.0-mcrypt
sudo apt-get upgrade
然后重启apache
sudo service apache2 restart
希望这个命令有帮助!
这篇关于需要 php 7 Mcrypt PHP 扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文