处理公众号/客服消息自动回复的时候报错undefined function mcrypt_module_open

发布于 5 年前作者 nsun3130 次浏览最后编辑 5 年前来自 share

背景

笔者服务器安装的版本是php7.1 fpm,ubuntu 16.04

解决方案

百度搜了一圈,发现7.2版本以上这个扩展废弃了,还好在7.2之下啊,哈哈哈
1.apt-cache search mcrypt
2.apt-get install php7.1-mcrypt
3./etc/init.d/php7.1-fpm restart

注:前提你是root下,如果不是在各行命令前面添加sudo

0 回复
暂无回复