由于 Laravel4 需要 mcrypt
扩展,而 PHP7 似乎没有 mcrypt
扩展,有什么解决方法可以解决这个问题吗?
Since Laravel4 requires mcrypt
extension, and PHP7 doesn't seem to have mcrypt
extension, is there any workaround for this to work?
遇到了同样的问题 - PHP7 缺少 mcrypt.
Had the same issue - PHP7 missing mcrypt.
这对我有用.询问时,保留本地 PHP 配置文件.
This worked for me. When asked, keep local PHP configuration files.
sudo apt-get update
sudo apt-get install mcrypt php7.0-mcrypt
sudo apt-get upgrade
安装后重启 FPM(或 Apache 或 NGINX 等).
Restart FPM (or Apache or NGINX etc.) after installation.
这篇关于如何在 PHP7 下安装 mcrypt?Laravel 需要它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!