Call to undefined function mcrypt_get_block_size

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 module
Module compiled with module API=20100525
PHP    compiled with module API=20121212
These options need to match
 in Unknown on line 0

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

重启php

你可能感兴趣的