Call to undefined function mcrypt_get_block_size

来源:互联网 发布:虹烨网络有限责任公司 编辑:程序博客网 时间:2024/05/20 10:54

http://stackoverflow.com/questions/17109818/install-php-mcrypt-on-centos-6


问题:Call to undefined function mcrypt_get_block_size()

需要安装php的 myrypt扩展


解决方案:

1.
yum update
yum install php-mcrypt*


添加 extension=/usr/lib64/php/modules/mcrypt.so到php.ini
2.

PHP Warning:  PHP Startup: mcrypt: Unable to initialize moduleModule compiled with module API=20100525PHP    compiled with module API=20121212These options need to match in Unknown on line 0

rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpmyum updateyum install php55w-mcrypt

重启php

0 0
原创粉丝点击