警告:/etc/php/7.2/mods-available 下不存在模块 mcrypt ini 文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/48363789/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
WARNING: Module mcrypt ini file doesn't exist under /etc/php/7.2/mods-available
提问by Fil
I've been trying to install phpmyadmin in Ubuntu 16.04.3 LTS having a lamp installed, php 7.2, mysql Ver 15.1 Distrib 10.2.12-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2 and apache2.
我一直在尝试在安装了灯的 Ubuntu 16.04.3 LTS、php 7.2、mysql Ver 15.1 Distrib 10.2.12-MariaDB 中安装 phpmyadmin,用于 debian-linux-gnu (x86_64) 使用 readline 5.2 和 apache2。
and I am following thisarticle from digitalOcean, but when I came to the part that I need to run sudo phpenmod mcrypt
I got a message saying..
我正在关注digitalOcean 的这篇文章,但是当我来到需要运行的部分时,sudo phpenmod mcrypt
我收到一条消息说..
WARNING: Module mcrypt ini file doesn't exist under /etc/php/7.2/mods-available
警告:/etc/php/7.2/mods-available 下不存在模块 mcrypt ini 文件
I am doing this on ubuntu installed in godaddy
我在godaddy中安装的ubuntu上执行此操作
Can you give best solution for this?
你能为此提供最佳解决方案吗?
回答by Somnath Sinha
Pointing to php7.1-mcrypt
with php7.2
will solve the issue here. Below are the steps to configure 7.1 version mcrypt with php7.2
Install php7.1-mcrypt
指向php7.1-mcrypt
withphp7.2
将解决这里的问题。以下是使用安装配置 7.1 版本 mcrypt 的php7.2
步骤php7.1-mcrypt
sudo apt install php7.1-mcrypt
Create symbolic link to php7.1-mcrypt
创建符号链接到 php7.1-mcrypt
sudo ln -s /etc/php/7.1/mods-available/mcrypt.ini /etc/php/7.2/mods-available/
Enable mcrypt
extension
启用mcrypt
扩展
sudo phpenmod mcrypt
Restart the FastCGI Process Manager service
重启 FastCGI 进程管理器服务
sudo service php7.2-fpm restart
Note:
The above solution is a workaround to enable mcrypt in php7.2 through apt tillphp7.2-mcrypt
is not available.
注意:
上述解决方案是在php7.2 中通过apt 启用mcrypt 的解决方法,直到php7.2-mcrypt
不可用。
回答by oussama benounnas
for php-7.3like mentioned above i had to execute this command
对于php-7.3如上所述,我必须执行此命令
sudo ln -s /etc/php/7.0/mods-available/mcrypt.ini /etc/php/7.3/mods-available/
cause the version 7.0 comes by default.
sudo ln -s /etc/php/7.0/mods-available/mcrypt.ini /etc/php/7.3/mods-available/
因为默认是 7.0 版。