兵兵有你

人品好,气质差.丢了工作就回家...

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

当前使用的是宝塔工具,PHP版本是7.2,据说只有7.1以下的版本才会默认安装了mcrypt功能。

所以的7.2的安装如下:

yum install libmcrypt libmcrypt-devel mcrypt mhash

wget  http://pecl.php.net/get/mcrypt-1.0.1.tgz

tar xf mcrypt-1.0.1.tgz

cd mcrypt-1.0.1

/www/server/php/72/bin/phpize

./configure --with-php-config=/www/server/php/72/bin/php-config  && make && make install


最后在软件管理——php7.2——配置文件的末尾加上extension=mcrypt.so这一段,然后重启php服务就行

  

posted on 2018-12-02 20:57  greatbing  阅读(2918)  评论(0编辑  收藏  举报