如何在 PHP7 下安装 mcrypt?Laravel 需要它
由于 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.
相关文章