php 7 Mcrypt需要PHP扩展 [英] php 7 Mcrypt PHP extension required

查看:102
本文介绍了php 7 Mcrypt需要PHP扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我已经从链接安装了php7 并且此链接也是.

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

Then restarts apache

sudo service apache2 restart

希望此命令会有所帮助!

Hope this commands helps!

这篇关于php 7 Mcrypt需要PHP扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆