Redhat6.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
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/gd.so' - /usr/lib64/php/modules/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mysql.so' - /usr/lib64/php/modules/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/snmp.so' - /usr/lib64/php/modules/snmp.so: cannot open shared object file: No such file or directory in Unknown on line 0
这是Redhat的一个bug 解决方法:
这是因为启动apche 的时候重复加载了php的动态库模块了,
将:/etc/php.d/ 目录下的mcrypt.ini gd.ini mysql.ini snmp.ini 中的内容注释掉或者将文件删除即可