CentOS6.4 64位运行php时出现错误:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/module.so' - /usr/lib64/php/modules/module.so: cannot open shared object file: No such file or directory in Unknown on line 0
这是CentOS的一个bug,解决方法:
修改/etc/php.d/mcrypt.ini文件,将其修改为:
- ; Enable mcrypt extension module
- extension=mcrypt.so