首页 > 代码库 > centos php 安装 decrypt

centos php 安装 decrypt

CentOS php

Fatal error: Call to undefined function mcrypt_decrypt()

 

// yum安装没有

#yum install libmcrypt libmcrypt-devel mcrypt mhash
Setting up Install Process
No package php-mcrypt available.
Error: Nothing to do

 

yum  install epel-release  //扩展包更新包
#yum  update //更新yum源
yum install libmcrypt libmcrypt-devel mcrypt mhash  就ok了

 

yum install  php-mcrypt

 

// 查看发现已经装上了。。。

[root@123 php]# find / * | grep "mcrypt.so"
/usr/lib64/php/modules/mcrypt.so
/usr/lib64/libmcrypt.so.4
/usr/lib64/libmcrypt.so.4.4.8
/usr/lib64/libmcrypt.so

 

vi /etc/php.ini 在末尾加上:extension=mcrypt.so

 

service httpd reload

OK

centos php 安装 decrypt